|
This is sample code. Add error handling and adjust to your requirements as necessary. |
* Returns the list of characters that are not allowed in the file names
FUNCTION GetInvalidFileNameChars()
LOCAL lcInvalidFileNameChars, lnAsc
lcInvalidFileNameChars = [*/:<>?|\] + CHR(34)
FOR lnAsc=0 TO 31
lcInvalidFileNameChars = lcInvalidFileNameChars + CHR(lnAsc)
ENDFOR
RETURN lcInvalidFileNameChars
* Returns the list of characters that are not allowed in the path names
FUNCTION GetInvalidPathChars()
LOCAL lcInvalidPathChars, lnAsc
lcInvalidPathChars = [*:<>?|] + CHR(34)
FOR lnAsc=0 TO 31
lcInvalidPathChars = lcInvalidPathChars + CHR(lnAsc)
ENDFOR
RETURN lcInvalidPathChars
Recent comments
1 week 5 days ago
1 week 5 days ago
2 weeks 2 hours ago
2 weeks 1 day ago
2 weeks 2 days ago
2 weeks 5 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 14 hours ago
4 weeks 4 days ago