xHarbour Reference Documentation > Function Reference |
Adds a numeric value to the ASCII code of a specified character in a string.
AddASCII( <cString>, <nValue>, [<nPos>] ) --> cNewString
The function adds <nValue> to the ASCII code of the specified character and returns the modified string.
See also: | CharAdd() |
Category: | CT:String manipulation , Character functions |
Source: | ct\addascii.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example shows results of AddASCII() PROCEDURE Main LOCAL cString := "ABC" ? AddAscii( cString, 32 ) // result: "ABc" ? AddAscii( cString, 3, 2 ) // result: "AEC" RETURN
http://www.xHarbour.com