Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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