Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create a name of variable by the content of another variable
#1
Here is a interesting question! :roll:
str s="apple"
str apple ;; varable name is determined by variable content of s.

Can QM create a name of variable by the content of another variable?
like the above example, moreover

int i=2; str s="apple"

Automatically, to create a variable's name through concatenatig i and s variables
the new variables should be similar to

str apple2="any word"
str applepie="other words"

out apple[2]
out apple[pie] ;; the suffix "2" or "pie" are added to "apple" to form a new variable
=========================
Can QM system functions allow variable names to be concatenated through any combination of character
expressions, numeric expressions, or existing variables?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)