Quote from: Pumaman on Thu 22/04/2004 20:49:50
1. Actually there's an undocumented feature you can use:
StrSetCharAt(mystring, StrLen(mystring), keycode);
A much safer (and more easily understandable) way is:
StrFormat(mystring,"%s%c",mystring,keycode);
right ?

(I'm not sure, but I suppose your way may not work well if the user somehow truncated the string by setting a character to 0, eg.
StrCopy(mystring,"BLAHBLAHBLAH!"); //BLAHBLAHBLAH!
StrSetCharAt(mystring,4,0);//BLAH
//Now suppose keycode=='T'
StrSetCharAt(mystring, StrLen(mystring), keycode);//BLAHTLAHBLAH!
which won't make the string into "BLAHT" as expected, right?)