03-08-2013, 10:50 PM
Hello,
It is possible to pass the contents of a variable to a QM command.
For example, I use this code to provide a menu selection:
Is it possible to use the value of the variable CASTLEmacro to execute a goto or return command?
Whytewhysper
It is possible to pass the contents of a variable to a QM command.
For example, I use this code to provide a menu selection:
str CASTLEmenuCSV=
; CASTLE Account Request, "CASTLE - Account Request"
; CASTLE Application Issue, "CASTLE - Application Issue"
; CASTLE Login Issue, "CASTLE - Login Issue"
; CASTLE Password Reset, "CASTLE - Password Reset"
; CASTLE Unlock Account, "CASTLE - Unlock Account"
ICsv c=CreateCsv(1); c.FromString(CASTLEmenuCSV)
MenuPopup m
int i
for i 0 c.RowCount
m.AddItems(c.Cell(i 0) i+1)
i=m.Show
str CASTLEmacro=c.Cell(i-1 1)
if(!CASTLEmacro.len) CASTLEmacro=c.Cell(i-1 0)
Is it possible to use the value of the variable CASTLEmacro to execute a goto or return command?
Whytewhysper