SteveMyres Posted April 27, 2011 Share Posted April 27, 2011 Is there a way to import and export the message lists for Descriptive Text Objects to some common format like CSV? I have some objects with several hundred messages, so that would be helpful. I use that feature frequently to maintain the channel tables. Link to comment Share on other sites More sharing options...
AzeoTech Posted April 27, 2011 Share Posted April 27, 2011 If you have that many options, I'd consider using a different technique: use a lookup table and a variable value control. To do this, you'll need to create a string variable: global string messages Then either assign in script, or use File. functions, especially file.readDelim() to load them from a file. So, in script it might just be: messages[0] = "first message" messages[1] = "second message" etc. Then in the variable value control, just put: messages[lookupValue] where lookupValue is the expression you used in the descriptive text component. This assumes that those values will be integers and will go from 0 up without skipping. If the numbers are more random, you might need to use a second lookup table for those values: global messageIndex messageIndex[0] = 3 messageIndex[1] = 5 Then use the search function in the variable value control: messages[search(messageIndex >= lookupValue)] Link to comment Share on other sites More sharing options...
SteveMyres Posted April 27, 2011 Author Share Posted April 27, 2011 Excellent idea for new applications. Is there anything I can do to get the list out if the object already exists? Link to comment Share on other sites More sharing options...
AzeoTech Posted May 4, 2011 Share Posted May 4, 2011 Other than hand typing? I'm afraid not. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.