Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
SunilChauhan
Champion II
Champion II

msgbox not working on button click macro

why this not working on button click

in script

set vName='Sunil';

Sub DispName

set Var=ActiveDocument.GetVariable(vName.String)     

msgbox(Var)

End Sub

Regards

Sunil

Sunil Chauhan
1 Solution

Accepted Solutions
danielrozental
Master II
Master II

Sunil, please look closely at the APIguide.qvw document.

Try something like this

Sub DispName

          vName="Sunil"

          set Var=ActiveDocument.GetVariable(vName)    

          msgbox(Var.Getcontent.string)

End Sub

View solution in original post

2 Replies
danielrozental
Master II
Master II

Sunil, please look closely at the APIguide.qvw document.

Try something like this

Sub DispName

          vName="Sunil"

          set Var=ActiveDocument.GetVariable(vName)    

          msgbox(Var.Getcontent.string)

End Sub

SunilChauhan
Champion II
Champion II
Author

Thank s for reply .

i hav found already

Sunil Chauhan