ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Looping through GUI objects and identifying its type

Hi All,

 

I have a query; I am working on GUI in DIAdem where I'm creating different type of objects and I wanted to check if we can loop through the objects of the GUI and know its type using scripting.

 

Your needful is much appreciated.

0 Kudos
Message 1 of 3
(1,142 Views)

If GUI means SUD dialog it could look like this:

 

dim iCtrl

 

for iCtrl = 1 to Dialog.Controls.Count
  msgbox Dialog.Controls(iCtrl).ObjectType
next

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 2 of 3
(1,106 Views)

Hi, 

 

I tried with your code, and it worked. Thank you so much for your suggestion🙂.

0 Kudos
Message 3 of 3
(1,092 Views)