06-17-2021 07:18 AM
I'm new to LabVIEW and have Problems with generic writing an Enum to text and reading it back
I have Cluster with different Controls. I do not know which Controls!!! But I know there might be a Enum U16 Control on it. How can I write and read the Enum to Text?
The problem I have is that I get the displayed text by reading the Value, but I need the Index to write the Value?!
Simplified Example:
Thanks for any advice or information reference
Solved! Go to Solution.
06-17-2021 07:26 AM - edited 06-17-2021 07:28 AM
Hi Paul,
@PaulPascher wrote:
How can I write and read the Enum to Text?
the classic way uses FormatIntoString/ScanFromString:
06-17-2021 07:33 AM
@GerdW wrote:
the classic way uses FormatIntoString/ScanFromString:
I do not have the Enum! I only have the showen Controles Reference of a Cluster (The Cluster is exchangable) that may contain an Enum
06-17-2021 07:38 AM
Hi Paul,
Variant to Data with an U16 as target type gives you the Enum numeric value:
Regards, Jens