Re: getNumber in wxEuphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu