[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    StrGetCar()

         Returns a character from a string

    Syntax:

         StrGetCar( cString, nPos ) -> nChar

         cString : The string to treat
         nPos    : The string position to return

    Description:

         Returns the ASCII value of the character in the specified
         position inside the string.

         This function, in conjunction with StrSetCar() may be very
         useful when a string is to be treated in C style as if it
         were character arrays.

    Return:

         The ASCII character value.

    Example:

         ? StrGetCar ( "Hello World", 1 )      //  72
         ? StrGetCar ( "Hello world", 0 )      //  Nil
         ? StrGetCar ( "Hello world", 5 )      //  32

See Also: StrSetCar()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson