LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I cast a control reference to a named numeric reference?

Using a cluster reference I get an array of controls and then by dereferencing this array I have a direct reference to a specific control. This could be any control but from the type descriptor value I know that this control is an enumeration (Type code 15,16,17 hex). I want to access this enumration controls 'strings[]' property from the control reference I have but the control reference only allows me access to the control class properties. If I could cast this reference to a named numeric reference then I could access the properties I am interested in. I know the enumeration control of which I have a reference to is a named numeric from the type code so is there a way to change my r
eference to reflect this?
0 Kudos
Message 1 of 3
(2,690 Views)
Use "To more specific class" on the Application Control palette.
On the "Target Class" input, drop a "Class Specifier Constant"
that you set to enum type find in the right-click menu under:
Generic/GObject/Control/Numeric/NamedNumeric/Enum


Jean-Pierre Drolet
Scientech R&D

"Stephan35" a écrit dans le message news:
506500000008000000101F0000-986697009000@quiq.com...
> Using a cluster reference I get an array of controls and then by
> dereferencing this array I have a direct reference to a specific
> control. This could be any control but from the type descriptor value
> I know that this control is an enumeration (Type code 15,16,17 hex).
> I want to access this enumration controls 'strings[]' property from
> the control reference I have but th
e control reference only allows me
> access to the control class properties. If I could cast this
> reference to a named numeric reference then I could access the
> properties I am interested in. I know the enumeration control of
> which I have a reference to is a named numeric from the type code so
> is there a way to change my reference to reflect this?


LabVIEW, C'est LabVIEW

Message 2 of 3
(2,690 Views)
Stephan35 wrote:

> Using a cluster reference I get an array of controls and then by
> dereferencing this array I have a direct reference to a specific
> control. This could be any control but from the type descriptor value
> I know that this control is an enumeration (Type code 15,16,17 hex).
> I want to access this enumration controls 'strings[]' property from
> the control reference I have but the control reference only allows me
> access to the control class properties. If I could cast this
> reference to a named numeric reference then I could access the
> properties I am interested in. I know the enumeration control of
> which I have a reference to is a named numeric from the type code so
> is there a way to change my reference to reflect this
?

Hope that attached will help. Your classID seems wrong, should be 34 (dec)

--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
Message 3 of 3
(2,690 Views)