Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 PE and Inform PE numeric input box
#1
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?
Reply
#2
(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...3#pid23253

Also,
QB64-PE wiki: https://qb64phoenix.com/qb64wiki/index.php/Main_Page
InForm-PE wiki: https://github.com/a740g/InForm-PE/wiki
Reply
#3
@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
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#4
Thanks for the advise.

I am back on track now.

Willi
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Astounding (and brief videos) demonstrating Inform James D Jarvis 0 412 05-06-2025, 03:39 PM
Last Post: James D Jarvis
  Mix mode input of a binary open file Question! doppler 5 1,470 11-28-2024, 03:06 PM
Last Post: Petr
  I need input on a possible bug in v3.5.0 TerryRitchie 50 8,375 05-22-2024, 07:03 PM
Last Post: TerryRitchie
  Input routine dano 9 1,525 05-21-2024, 03:50 AM
Last Post: grymmjack
  Maximum number of labels in Inform PE? Willi Grundmann 6 1,066 03-13-2024, 11:38 PM
Last Post: Willi Grundmann

Forum Jump:


Users browsing this thread: 1 Guest(s)