Previous Topic

Next Topic

ValidCode - MaxBasic Function

ValidCode(aCode: String[, ExcludeChars: String]): Boolean

Returns True for a valid Code with no non-printing characters. Characters must not be less than Ascii(32) or greater than Ascii(126), and must not contain spaces, wildcards (such as *, ?, %, _), or csv punctuation (such as " ,). If the ExcludeChars is included, wildcard and csv punctuation in ExcludeChars will not be considered. Non-printing characters and leading spaces are always considered invalid. Returns False for an invalid code.

ValidCode function syntax has these named arguments:

Parameter

Description

aCode

Required. The code to be validated.

ExcludeChars

Optional. Any wildcard or csv characters to be excluded from the validation.

See Also

String Functions

Book Contents

Book Index