xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

StrPoke()

Changes the ASCII code of a specified character in a string.

Syntax

StrPoke( <cString>, <nPos>, <nASCII> ) --> cString

Arguments

<cString>
This is a character string to change a single character in.
<nPos>
The ordinal position of the character to change must be specified as a numeric value.
<nASCII>
This is the numeric ASCII code to change the specified character to.

Return

The function changes the ASCII code of the character at the specified position and returns the modified string.

Note:  the function exists for compatibility reasons only.

Info

See also:[ ] (string), Chr(), StrPeek()
Category: Miscellaneous functions
Source:rtl\strpeek.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe