11-22-2010 06:08 AM
I have a table control with header strings populated.
I would like to have switch case for the each row header string automatically.
because the table has 50 rows it is difficult for me to edit the switch case manually.
(Inside the each case the string need to be populated.)
i may insert or deleted the header string while developing the vi.
It is fine to have the empty case for the inserted string but the value of string to be in the switch case.
How to do this?
11-22-2010 07:17 AM
Hi,
Please provide any alternate way if it can be done to handle list of strings.
Thanks for the help
Thanks
Kalyan
11-22-2010 07:49 AM
I'd create a Type def'd Enum of the column names, then you can extract the strings from that to populate the first row of the table and connect it to a case structure and select "Add case for all values".
To create the Type def Enum a little easier you can create a ring control which can be populated by the existing column names, then replace it by a Enum and it'll keep the list.
/Y
11-22-2010 07:59 AM
Hi,
I am not able to get this point.
Do you have sample test vi for this?.
Thanks for the help.
Thanks
Kalyan
11-22-2010 09:20 AM
11-22-2010 09:29 AM
Please send the file in 2009 format. Thanks for the help.
11-22-2010 09:35 AM
11-22-2010 09:50 AM
It's hard to post a VI of a process ... but this might be some help.
/Y