I didn't know this...

Peter M. Brigham pmbrig at gmail.com
Sat Dec 27 12:37:36 EST 2014


Other people may already know this, but I just discovered that you can do something like:

put "12.34.56.78" into p
replace "." with empty in char 4 to -1 of p

and sure enough, you get "12.345678"

I did not know that the replace command can work on a chunk within a variable. The documentation doesn't reflect this.

It only takes small things to make me happy.  :-)

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list