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


Messages In This Thread
Get the variable name in QM - by Davider - 03-20-2024, 10:35 PM
RE: Get the variable name in QM - by Davider - 03-22-2024, 12:50 PM
RE: Get the variable name in QM - by Gintaras - 03-22-2024, 01:01 PM
RE: Get the variable name in QM - by Davider - 03-22-2024, 02:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)