fixxorion Posted January 16, 2004 Share Posted January 16, 2004 Hi all! I'm trying to create my own custom panel at the moment, but I don't know how to access data from my own panel. For instance, I have a button and a text field. As a test, I would like to have the button display a message box showing the value inside the text field. However, I don't know how to access the value inside the text field. Any ideas on how to get it? Thanks, fixxorion Quote Link to comment Share on other sites More sharing options...
edward Posted January 16, 2004 Share Posted January 16, 2004 Use $V. For example, in the script for your input field, use "message $V". Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted January 16, 2004 Share Posted January 16, 2004 Use $V. For example, in the script for your input field, use "message $V". So in order to have a button query the value of a checkbox..... Have the checkbox set an env. variable. setenv myCheckBox = $V Then in the button you would have message $myCheckBox Is this the right direction? Better yet....I'll buy you a Coke if you can get the cuquery() expression to work. jim. Quote Link to comment Share on other sites More sharing options...
fixxorion Posted January 17, 2004 Author Share Posted January 17, 2004 That certainly did work! However, you've got me really curious about the cuquery() function. It seems like it should work. Something on the lines of: message `cuquery(panel1, myInputField.val)` Any other suggestions? Thanks for all the help, fixxorion Quote Link to comment Share on other sites More sharing options...
fixxorion Posted January 17, 2004 Author Share Posted January 17, 2004 hm...I seem to have figured it out. In the inputfield's command I put the following: cuset -p panel1 -n myInputField.val -v $V And in the button's command I put: message `cuquery(panel1, myInputField.val)` It seems strange that I would need to update the value, but it wouldn't work otherwise. Hope this helps someone else out! Later, fixxorion 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.
Note: Your post will require moderator approval before it will be visible.