-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Is possible to replace the "MatchEnumIndexToString.vi" with the OpenG "Set Enum String Value__ogtk.vi" so enum datatype is not lost during the conversion?
My specific issue is that i want to serialize and deserialize an array of strings and an array of variants, during the Deserialization i loose the type of the Enum item and i get it as a string instead of the enum item (that is one array item that is connected to the "Type and defaults" of Unflatten from String).
Maybe it has been done by searching and outputting the index of string to speed up the conversion?
i can workaround and get the type and default to specifically coerce after the Unflatten from String but i was asking why the data type is not kept also because if there is not a matching string the output is a void that can cause an error 91 trying to use the variant to data.
this is my workaround but it would work also inside the Unflatten from String (inside the "String" case there is the "Set Enum String Value__ogtk.vi"... but Enum U8..Enum U64 is more useful to see because the variant to data lose the data type of enum if is passed as a variant... it show what is done inside the OpenG vi but without searching the Enum Index from string)