Created
May 12, 2015 16:18
-
-
Save MarkGoldberg/f1aa3ede4394272d54c5 to your computer and use it in GitHub Desktop.
Clarion - Test Prop:DataPath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
END | |
END | |
CODE | |
TextFile{PROP:Name} = 'Yada.txt' | |
DO CreateFile | |
SYSTEM{PROP:DataPath} = 'C:\TMP' | |
DO CreateFile | |
TextFile{PROP:Name} = 'Testing.txt' !<-- if don't re-set this, then the changed DataPath does not come into play... | |
DO CreateFile | |
SYSTEM{PROP:DataPath} = 'C:\TMP\1.2.3' | |
TextFile{PROP:Name} = 'Testing.txt' | |
DO CreateFile | |
CreateFile ROUTINE | |
CREATE(TextFile) | |
IF ERRORCODE() | |
MESSAGE('CREATE(TextFile) failed|Error['& Error() &']|ErrorFile['& ERRORFILE() &']') | |
ELSE OPEN(TextFile) | |
MESSAGE('Created File['& NAME(TextFile) &']') | |
CLOSE(TextFile) | |
END | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment