Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor II
Contributor II

Add Variable by using macro(VB)

I want to add(create) varable by using macro.

And, if it is possible, I want to delete the variable, too.

like,

  set v = ActiveDocument.AddVariable("vTest") '<-- there is no "AddVariable" method

  v.SetContent "123", true

  v.Remove '<-- there is no "Remove" method

Please teach me how to create / delete variable.

Regards.

shin

1 Solution

Accepted Solutions
Highlighted
Master II
Master II

From the API Guide:

ActiveDocument.CreateVariable "MyVar"

ActiveDocument.RemoveVariable "xyz"

View solution in original post

2 Replies
Highlighted
Master II
Master II

From the API Guide:

ActiveDocument.CreateVariable "MyVar"

ActiveDocument.RemoveVariable "xyz"

View solution in original post

Highlighted
Contributor II
Contributor II

It worked!

Thank you very much for your help.

shin