Re: Process "enum" labels dynamically...

2004-03-01 Thread waldemar.hersacher
Dear Jim,

you are right it is working in LV 6.1. The help is not correct, it
says "This property is read only for enumerated type controls.".

The LV 7.0 help is more precisly. It distinguishes between Enum and
Ring.

Waldemar



Re: Process "enum" labels dynamically...

2004-03-01 Thread Jim Kring
Yes, you can change (write) the strings of an enum.  However, the VI
containing the enum must be idle (not running) in order to write to
this property (it doesn't matter for reading).  To do this, open a VI
reference from another VI and then get a reference to the enum by
getting a panel reference, and then searching through the Controls[]
for one with a Label.Text whose name is the same as your target enum.

-Jim



Re: Process "enum" labels dynamically...

2004-03-01 Thread Dr. Imad
If you mean by labels of enum, the strings, then you cannot do that
for an enum.  This is how an enum is
You can use a ring and change / set the strings using the strings
attribute property. For an enum type, this property is a read only.
However you can create a enum type-definition and change its strings,
This would affect all the instances of the type definition.  , and
yes, the strings (of the type def) have to be changed manually



Re: Process "enum" labels dynamically...

2004-03-01 Thread waldemar.hersacher
You cannot set the strings of a Enum control or indicator. See help
under "Programmatically controlling VIs>>VI Server properties and
methods>>Generic Class>>GObject>>Control>>Properties>>Numeric>>Named
Numeric>>Strings[]".

We use a Menu Ring. This one you can set with the Strings[] property.

Waldemar