02 February 2004, 07:54 PM
If all you have is a string representing a name you want to test, you could do it like this:
nameString = "Box01"
isValidNode (execute (("$" + nameString)))
You could easily use the result of this call to change a button state or caption:
if isValidNode (execute (("$" + nameString))) then
button1.caption = nameString
button1.enabled = true
else button1.enabled = false
Using the same kind of construct, you could also swap out a bitmap image, or whatever else you'd like your interface to do! Good luck:thumbsup:
01 January 2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.