Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the variable name in QM
#1
The function FuncA in the following link remains effective in the generated EXE.
https://www.libreautomate.com/forum/show...6#pid37586

I want to achieve the same functionality in QM. The following code works fine in QM, but after generating the EXE, I'm getting incorrect results.
Is there a better solution? Thank you very much.

Macro Macro31
Code:
Copy      Help
str aa
str bb
out getArgsVarNames(aa, bb)

Function getArgsVarNames
Code:
Copy      Help
function~ [`_A1] [`_A2]

if getopt(nargs)>0
,GetCallStack &_s 2
,str fs="getArgsVarNames("
,_i=find(_s fs); _s.get(_s _i+fs.len); _s.trim; _s.rtrim(")")
,ARRAY(str) a; tok _s a -1 "," 0x2000
,_s=a
,ret _s
#2
Under EXE, is there really no solution?
#3
If you ask me, I don't remember, but everything is documented. For example GetCallStack documentation contains links to related functions.
#4
I've read the documentation, but I just can't find a solution.
Perhaps in the future, inspiration will strike somewhere...  Wink
Anyway, thank you very much. You've taught me a lot!


Forum Jump:


Users browsing this thread: 3 Guest(s)