Axaptapedia is now maintained by AgileCadence For more information please click here.
StrPoke
From Axaptapedia
StrPoke[edit]
Syntax[edit]
<xpp> str StrPoke (str text1,str text2,int position) </xpp>
Description[edit]
Overwrites part of the text string specified by text1 with the text string specified by text2. position specifies the position in text1 at which text2 is placed.
Example[edit]
<xpp> StrPoke("12345678","AAA",3) //returns the text string "12AAA678". </xpp>
Notes[edit]
StrPoke inserts a text string into another text string and overwrites that part of the original text string which is overlapped by the new one. If the inserted text string is longer than the original text string, the resulting text string will be longer than the original text string. The return value of StrPoke becomes a new text string...