DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Get list of channel properties / check if a property exists

Highlighted

Hallo, I need to check if a channel has a property with a given name, and in case create it. I try the following code but did not work, any hint?

               If oChn.Properties("prop_name").Exist = TRUE Then

0 Kudos
Message 1 of 2
(191 Views)

If oChn.Properties.Exists("prop_name") Then

 

http://zone.ni.com/reference/en-XX/help/370858M-01/inavidata/methods/diacmpnt_method_exists_idiademp...

 

No need to clutter with " = TRUE " unless it is easier for you to read

0 Kudos
Message 2 of 2
(173 Views)