Show variable's value

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

Show variable's value

Postby Mark81 » Tue Mar 26, 2019 1:22 pm

Hi, I searched in the manuals and in the forum but I cannot find an answer. I want to display the value of a variable (say #5063) on my screenset.
What settings I have to define in order to show it in a textfield (I guess) ?
Mark81
 
Posts: 42
Joined: Thu Feb 14, 2019 4:38 pm

Re: Show variable's value

Postby ger21 » Tue Mar 26, 2019 2:55 pm

A macroloop with something like this?

while(loop)
{
double myvar = exec.Getvar(5063);
AS3.Setfield(myvar, fieldnumber);
AS3.Validatefield(fieldnumber);
Thread.Sleep(50);
}
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: Show variable's value

Postby Mark81 » Tue Mar 26, 2019 5:05 pm

Yes it works, thanks!
I thought there was a simpler way to show the value of a variable! :shock:
Something like "#5063" also for the property of the textfield!
Mark81
 
Posts: 42
Joined: Thu Feb 14, 2019 4:38 pm


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 4 guests