> > Is there a way of expressing "delete the last char ofmyString" using > dot syntax?
Yes: delete myString[myString.char.count]
With the caveat that it only works in MX 2004.
and that it is slower also.
not noticable for short strings, but try a long string.
I always use verbose syntax, since there still is no dot representation of the string functions like 'put into', 'put before' or 'put after'.
with dot syntax you can do that only by concatenating the substrings, which needs to allocate a new string, whereas the 'put's in verbose seem to change the string in place, by REALLY doing what the meaning is of:
put chunk after string
instead of
string = string & chunk
but since I have by no means any knowledge about what's really going on inside, I may be completely wrong and it is only the 'translation' of dot to verbose, which takes so long. but I really doubt that, unless there is an ugly bug in that translation... ;-)
--
||| a�ex --
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
