Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

ni_avoss
Contributor

Read out / display Object properties using VBScript

hi there,

the following question is slightly connected to my other problem (set Selection Style of Listbox to LED Checkbox using VBScript ) but I also need in different ways so I am starting a new thread.

Is there a way to read out and display all / specific properties of an object using VBScript ?

My aim is to see the IDs used for certain properties.

So far I tried

    set LB = ActiveDocument.GetSheetObject("list")

    set box=LB.GetProperties.SelectionStyle

    msgbox(box)

which doesnt work.

any ideas ?

thanks

1 Reply
Highlighted
MVP & Luminary
MVP & Luminary

Re: Read out / display Object properties using VBScript

Could you expand on what you mean by "see the IDs used for certain properties"?

Your code fragment above is incorrect.  One of the keys to understanding VbScript and this API is understanding what is an object (when Set is required) and what is a simple property.  In your example you are also missing the the step of getting the Layout property, which contains SelectionStyle. So a working example may look like:

set LB = ActiveDocument.GetSheetObject("LB01")

set box=LB.GetProperties

style = box.Layout.SelectionStyle

msgbox(style)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com