Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The QV COM API Guide available here
has details on working with variables. Basically it's:
Set var = ActiveDocument.GetVariable("varname") 'gets a Variable object
content = var.GetContent.String 'gets variable content
var.SetContent newvalue 'sets variable value
You will probably have to convert the string to number first if you want to do arithmetic.
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
@cesaryulgon Hi, are you using Qlik Sense or View? I would like to move this into the correct product forum. Thanks
Qlikview.
The QV COM API Guide available here
has details on working with variables. Basically it's:
Set var = ActiveDocument.GetVariable("varname") 'gets a Variable object
content = var.GetContent.String 'gets variable content
var.SetContent newvalue 'sets variable value
You will probably have to convert the string to number first if you want to do arithmetic.
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
Thank you very much for the contribution