Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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