Skip to content

Instantly share code, notes, and snippets.

@MarkGoldberg
Created May 12, 2015 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkGoldberg/f1aa3ede4394272d54c5 to your computer and use it in GitHub Desktop.
Save MarkGoldberg/f1aa3ede4394272d54c5 to your computer and use it in GitHub Desktop.
Clarion - Test Prop:DataPath
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