QB64 Phoenix Edition
QB64 PE and Inform PE numeric input box - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: QB64 PE and Inform PE numeric input box (/showthread.php?tid=2502)



QB64 PE and Inform PE numeric input box - Willi Grundmann - 03-11-2024

Hi,

I am learning QB64 Phoenix Edition and Inform PE with the intention to do a hobby project.

In my test GUI I have a numeric input box.

How can I pass in QB64 PE the value of the numeric input box to a variable? I could not find it in the Inform PE examples.

Is there a way to get a manual for QB64 and Inform?


RE: QB64 PE and Inform PE numeric input box - a740g - 03-11-2024

(03-11-2024, 08:32 AM)Willi Grundmann Wrote: Hi,

I am learning QB64 Phoenix Edition and Inform PE with the intention to do a hobby project.

In my test GUI I have a numeric input box.

How can I pass in QB64 PE the value of the numeric input box to a variable? I could not find it in the Inform PE examples.

Is there a way to get a manual for QB64 and Inform?
Welcome to the QB64-PE forums.

Use the Value property of the control to get / set the value. So, if your numeric text box control name is foo, then you can use:

Code: (Select All)
x = Control(foo).Value ' get
Control(foo).Value = x ' set

See the attachment in the following post for a complete example.
https://qb64phoenix.com/forum/showthread.php?tid=1756&pid=23253#pid23253

Also,
QB64-PE wiki: https://qb64phoenix.com/qb64wiki/index.php/Main_Page
InForm-PE wiki: https://github.com/a740g/InForm-PE/wiki


RE: QB64 PE and Inform PE numeric input box - bplus - 03-11-2024

@Willi Grundmann you may be interested to know QB64pe has _InputBox$()
Code: (Select All)
myNum = Val(_InputBox$("Demo _INPUTBOX$([title$][, message$][, defaultInput$])", "enter a number please", "10"))
Print "Your number squared is"; myNum ^ 2



RE: QB64 PE and Inform PE numeric input box - Willi Grundmann - 03-12-2024

Thanks for the advise.

I am back on track now.

Willi