WinAPI::isFileNameValid Method [AX 2012]

Checks for invalid characters in the file name.

Syntax

client public static boolean isFileNameValid(str fileName)

Run On

Client

Parameters

  • fileName
    Type: str
    The file name value.

Return Value

Type: boolean
true if the file name is valid; otherwise, false.

Remarks

The updated function that contains a list of invalid file name characters that is current, as of July 19, 2010, retrieved by using the GetInvalidFileNameChars method.

A server side function is available also

See Also

Reference

WinAPI Class