Function Reference


StringIsSpace

Checks if a string contains only whitespace characters.

StringIsSpace ( "string" )

Parameters

string The string to check

Return Value

Success: Returns 1.
Failure: Returns 0 if string contains non-whitespace characters.

Remarks

Whitespace includes Chr(9) thru Chr(13) which are HorizontalTab, LineFeed, VerticalTab, FormFeed, and CarriageReturn.

Whitespace also includes the standard space ( Chr(32) ).

Related

StringIsAlNum, StringIsAlpha, StringIsASCII, StringIsDigit, StringIsLower, StringIsUpper, StringIsXDigit, StringUpper, StringLower, StringStripCR, StringStripWS

Example


Local $x = "   " & @LF & Chr(11) & @TAB & " " & @CRLF
If StringIsSpace($x) Then
    MsgBox(0, "", "String only contained whitespace characters.")
EndIf