Description

Checks a string to see if all the characters in the string are alphanumeric.

Syntax

target.strlib.IslAphaNumeric( input, ignore );

input: String to be parsed

ignore: Specify characters to be allowed through even if they are not alphanumeric

Return value

Returns a true or false result.

Sample

'---------- Start ----------

Function Start

Dim str, str2

str = "Is this string alphanumeric?"

if target.strlib.IsAlphaNumeric( str ) = true then

trg.Message( "Yes" )

else trg.Message( "No" )

end if

End Function

In this example IsAlphaNumeric takes the input string and scans it checking to see if every character is alphanumeric. In this case IsAlphaNumeric would return false because there are spaces and a question mark.