Re: getNumber in wxEuphoria
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Apr 04, 2005
- 412 views
sixs wrote: > > I use the command getNumber in win32lib as: > HMEID = getNumber(EMEID) > set_parameter("HMEID",HMEID) > > --- > I want to do the same thing in wxEuphoria. I have trouble changing the > text field to integer to insert into edb using eusql. As Greg alluded, you need to use value():
temp = value( get_text_value( EMEID ) ) HMEID = temp[2] set_parameter( "HMEID", HMEID )
This comes up occaisionally, so I suppose I'll add this for the next release:
global function get_text_number( atom textctrl ) sequence text text = value( get_text_value( textctrl ) ) return text[2] end function
Matt Lewis