I wrote the macro code for a button to get the current selection in listbox .Like this
SET id= ActiveDocument.Fields("V_Id")
SET selection = id.GetSelectedValues if selection.Count=1 then
When I click the button ,I need to store the macro variable ( selection) to a qlikview variable which I'll use later in load/select query in edit script.For example if I assigned the macro variable (selection) to a qlikview variable(say 's'),then the select query would be like this.
select * from table1 where V_Id=$(s);
suggest me a correct prodecure in assigning macro variable to qlikview variable.