11-07-2005 01:42 PM
11-07-2005 02:31 PM
11-08-2005 02:10 AM
11-08-2005 07:08 AM
Thank you tbob and tst. I do use the enum "trick" in other places (I once saw it used in an example somewhere) and I am nervous about the Selector Strings property available through scripting after reading about it on the LAVA forums site (I am a novice LabView user and I mostly didn't know what they were talking about).
I have a VI that processes "tags" embedded in various text fields that many of my collegues use. As an example we have a custom front end to the LabView simple error handler that processes our custom error codes and handles timed popups, writing to the device error log, etc. The default behavior can be modified by inserting tags (<popup 60> for a dialog box with a 60 second timeout or <no device log> to supress writing an entry to our device error log) into the "source" string of a standard error cluster -- just like the <append> tag used by the Simple Error Handler.
In most instances there are only a few tags so I just use a case structure in the "tag processing VI" to select the desired action indicated by each tag. When people are parsing their strings for tags, they like to have a qick and easy way to test if a string is a vaild tag. I provide a separate "validator VI" to do this. I frequently add and remove tags from the case structure as things evolve, but I often forget to update the list of valid tags used by the validator VI or some one runs into an older version on another machine. I wanted to have the vaildator VI access the case structure on the tag processing VI to get the current list of vaild tags.