Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:19 10 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Newie with a question

Author Message
macca
Newbie

Joined: 21/02/2017
Location: Australia
Posts: 32
Posted: 11:17am 17 Dec 2017
Copy link to clipboard 
Print this post

Hi all
If I have a GUI numberbox and say I input the number 100 how do you get this number to show up in a GUI Displaybox.
Regards
John
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 12:42pm 17 Dec 2017
Copy link to clipboard 
Print this post

You use ctrlval(#ref), something like this:

' Example only use your own reference numbers and variable names
' Reference numbers at start for GUI Controls
DIM NBRef% = 10
DIM DBRef% = 11
DIM TString$

' Code to define your Numberbox and Displaybox
'...

' Code to display your Numberbox and Displaybox
'...

' Code to get value from Numberbox and display it in Displaybox
TString$ = CtrVal(NBRef%)
CtrlVal(DBRef%) = TString$
Edited by Azure 2017-12-18
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025