Post Reply 
Emu48--can I programmatically construct a 'NAME'?
12-27-2022, 04:38 AM
Post: #4
RE: Emu48--can I programmatically construct a 'NAME'?
(12-27-2022 01:21 AM)Gil Wrote:  Or, with "AB" and "CD" :

Just add the two STRINGS, with +, to get "ABCD";
then execute OBJ—>, to change the string into the new variable name 'ABCD'.

Note that this only works if there's no object named ABCD in the current path hierarchy. If there is, it will be executed instead of having the name placed on the stack (which I believe is what rickster needs here).

Placing the single quotes around the string insures that the name is placed on the stack instead of executing the object if it already exists.

Also, STR→ and OBJ→ do exactly the same thing when given a string as the argument (they literally call the same internal routine). There's no difference between them in this situation.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Emu48--can I programmatically construct a 'NAME'? - DavidM - 12-27-2022 04:38 AM



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