Home Search

DriveWorks Pro 22
IsValidFileName

Send Feedback

IsValidFileName

This function checks the specified file name and ensures it is of a valid structure and syntax.

Syntax

IsValidFileName([FileName])

Where:

FileName is the file name to check

Examples

Rule

Meaning
IsValidFileName("helloworld.txt")This function validates the file name "helloworld.txt" and returns True as it is structurally and syntactically valid.

Example Outcomes

FileNameOutcome
"helloworld.txt"True
"hello:world.txt"False
"helloworld"True
"\hello\world.txt"False
""False