Re: Win getText of an integer

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

----- 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)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu