Skip to main content
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
Showing results for 
Search instead for 
Did you mean: 

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


which doesnt work.

any ideas ?


1 Reply
Partner Ambassador/MVP
Partner Ambassador/MVP

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