DriveWorks Solo 15: IsValidFileNameResult [send feedback...]

Syntax

ISVALIDFILENAMERESULT( [ FileName] )

This function checks the specified file name and validates it based on the fact it can have a '*' character at the beginning of the filename, at the end of the filename, one at either end, or none at all.

Examples

Rule

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

Example Outcomes

FileNameOutcome
"helloworld.txt"True
"*file.txt"True
"file.txt*"True
"*file.txt*"True
""False
"file*txt"False
"**file.txt"False
"file.txt**"False
"file.*"False
"*.txt"False
"*.*"False

Table of Contents