Post Reply 
YAR (Yet Another Request)
03-30-2017, 02:39 PM (This post was last modified: 03-30-2017 02:40 PM by toml_12953.)
Post: #1
YAR (Yet Another Request)
Maybe there's already an easy way to do this but I haven't found it. I'd like to be able to change characters in a string simply. It would be something like this:

PHP Code:
MYSTRING:="1234567890";
MYSTRING(4,4):="X";
PRINT(
MYSTRING); 

which prints 123X567890

Right now, I'm doing this:

PHP Code:
MYSTRING:="1234567890";
MYSTRING:=LEFT(MYSTRING,3)+"X"+MID(MYSTRING,5);
PRINT(
MYSTRING); 

which works but is inelegant.

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
YAR (Yet Another Request) - toml_12953 - 03-30-2017 02:39 PM



User(s) browsing this thread: 1 Guest(s)