<-- Previous || Up || Next -->

Is Carriage Function
Character Types Class

Public Function IsCarriage( _
    ByVal vCharCode As Integer _
    ) As Boolean

"Is Character Carriage Control"
Return True if the character with ASCII value vCharCode is a carriage control character (like carriage return, line feed, form feed, etc.).
Function returns False otherwise.

    IsCarriage(Asc(vbLf)) = True
    IsCarriage(Asc(vbCr)) = True
    IsCarriage(Asc(vbTab)) = True
    IsCarriage(Asc("A")) = False
See also:
    IsCntrl Function
    IsSpace Function
    CharTypeCarriage Property
vCharCode: Character whose ASCII value is checked to determine if it belongs to the carriage control class.
Note: Function will generate a runtime error if vCharCode is not between 0 (zero) and 255 inclusive.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.