View previous topic :: View next topic |
Author |
Message |
tnt06
Joined: 07 Sep 2007 Posts: 4 Location: US
|
Posted: Thu Sep 27, 2007 7:54 am Post subject: tag.toStringObject syntax |
|
|
Ok,
Can someone point me to a source-tutorial on the correct syntax for using tag.toString?
I'm trying to assign a pointer (in this case), to a textbox using tag.toString and assign the value in the textbox back to the pointer.
for example,
short lblone =100
rtx_EnableRxLabel(7, lblone); // set ch7 to rx label 100 as default
??? writef("%d", lblone (tag.toString...()));
in other words, I want to display the value of lblone in a TextBox, and if I change the value in the TextBox, it will update lblone.
I know it's simple, but the more I try, the faster everything starts spinning!
Todd
_________________ The newest newbee. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Fri Sep 28, 2007 7:12 pm Post subject: Re: tag.toStringObject syntax |
|
|
Sorry, I don't quite follow what you're saying. Perhaps this will help: the tag property is just an Object, so calling toString on it is simply getting that object's string representation. If you want to set a non-Object (non-class) as the tag, wrap it in some class. If you want it to be a string, DFL has StringObject provided. x.tag = new StringObject("foo");
Please clarify if this didn't help. |
|
Back to top |
|
|
tnt06
Joined: 07 Sep 2007 Posts: 4 Location: US
|
Posted: Sat Sep 29, 2007 7:59 am Post subject: tag.toStringObject syntax |
|
|
Thanks for the reply,
I figured out it won't work anyway. The TextBox will only accept a char input, so I think I will just punt and go back to C.
Todd _________________ The newest newbee. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|