Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Can anyone clear me why there is a true/false at the end of macro codes.
For eg:
v.SetContent "123", true
ActiveDocument.CreateDocBookMark false, "MyBookMarkName"
Hey Jagan ~ the true/false are just additional parameters (boolean type) to the given member. I'd recommend you check out the APIGuide.qvw installed with the desktop client; default is c:\Program Files\QlikView\Documentation\APIguide.qvw
Filter on a given member (e.g. SetContent) and check out the "Automation Members" tab for details on the parameters. -Isaiah
Ya i've seen APIGuide.. I understood that there are additional parameters but if i remove those parameters i'm getting the error. Why the additional parameters are there for few members. Actually what is the purpose of it.
Gotchya ~ the parameter on SetContent is to update (or not) the MRU (Most Recently Used) list for the variable. I think this only has an effect if you're using an input box for the variable and use the MRU list as a constraint.
For CreateDocBookMark the first parameter decides whether or not the bookmark should be applied on top of the current selections.
If you're seeing an error when you remove them, it's because the parameters are required. The "Direction" column in the APIGuide will indicate optional if such, otherwise they're required.
Hope this helps -Isaiah
Thanks a lot for your breif explaination...