Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
shin_oomura
New 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

Tags (3)
1 Solution

Accepted Solutions
Highlighted
mwoolf
Honored Contributor II

Re: Add Variable by using macro(VB)

From the API Guide:

ActiveDocument.CreateVariable "MyVar"

ActiveDocument.RemoveVariable "xyz"

View solution in original post

2 Replies
Highlighted
mwoolf
Honored Contributor II

Re: Add Variable by using macro(VB)

From the API Guide:

ActiveDocument.CreateVariable "MyVar"

ActiveDocument.RemoveVariable "xyz"

View solution in original post

shin_oomura
New Contributor II

Re: Add Variable by using macro(VB)

It worked!

Thank you very much for your help.

shin