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

ISVALIDFILENAMERESULT

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.

Syntax

Available for DriveWorks Projects only. See New Project Wizard for information on project types.

ISVALIDFILENAMERESULT( [ FileName] )

FileName is the FileName to check

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