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

         Returns a character from a strint

    Syntax:

         StrGetCar( cString, nPos ) -> nChar

         cString : The string to treat
         nPos    : The string position to act with

    Description:

         Returns the ASCII value of the character in the specified
         position inside the string.
         This function, in conjunction with StrSetCar() may be very
         usefull when a string want to be treated in C style as if they
         were character arrays.

    Return:

         The ASCII character value.

    Example:

         ? StrGetCar ( "Hola mundo", 1 )      //  72
         ? StrGetCar ( "Hola mundo", 0 )      //  Nil
         ? StrGetCar ( "Hola mundo", 5 )      //  32

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