Re: Win getText of an integer
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 09, 2003
- 405 views
----- Original Message ----- From: "C. K. Lester" <euphoric at cklester.com> To: "EUforum" <EUforum at topica.com> Subject: Re: Win getText of an integer > > > sixs at ida.net wrote: > > > > > I want to enter a number into a windows program , > > Is there a "getInteger" in Euphoria? Windows > > JVandal > > Well, if you have a textbox (or edittext) control, you can get its value > > seq = getText(MyEditBox) > > and then use sprintf() or value() (?) to get its value. > > num = sprintf("%d",{seq}) > > Or somethin' like that. Actually that would NOT work because sprintf() converts a number to a text format and not the other way round. With win32lib you can simply do: num = getNumber(MyEditBox)