blevey Posted August 14, 2006 Share Posted August 14, 2006 I have several text boxes that when selected (the field is set to be a button) will evaluate the contents and if empty put an X in it, the next time it clicked it would remove the X. Simple so far: Script: Set Field[Table::field;Case(IsEmpty(Table::field);"X";"")] However, since I have 100 of these fields, I don't want to write 100 scripts.. Is there a way to use variables or something so the same script can be used. I've tried using script parameter to pass the field name: Script parameter = OneA (the field name) Set Variable [ $cell; Value: Get(ScriptParameter)] Set Field[$cell;Case(IsEmpty($cell);"X";"")] It didn't work. Any help would be appriciated. Blevey Quote Link to comment Share on other sites More sharing options...
Ender Posted August 14, 2006 Share Posted August 14, 2006 Why don't you try a checkbox value list instead. Quote Link to comment Share on other sites More sharing options...
blevey Posted August 14, 2006 Author Share Posted August 14, 2006 Good thought.... Now why didn't I think of that... thanks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.