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

         Modifies a character in a string

    Syntax:

         StrSetCar( cString, nPos, nChar ) -> cNewString

         cString : The string to treat
         nPos    : The string position modify
         nChar   : The new character to replace

    Description:

         Modifies a string at the specified position and returns the new
         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 modified string.

    Example:

         ? StrSetCar ( "Hello world", 1, 32 )   //  " Hello world"
         ? StrSetCar ( "Hello world", 0, 35 )   //  "Hello world"
         ? StrSetCar ( "Hello world", 7, 85 )   //  "Hello world"

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