Nirtec Studio Forum

General Category => EasyPLC v.5 => Topic started by: fredz0003 on April 21, 2012, 03:33:11 AM

Title: Help with the Keypad() function, click event on HMI
Post by: fredz0003 on April 21, 2012, 03:33:11 AM
Hi everyone, I have a question I have a textbox linked to an int variable, I have a click event for that textbox, in the event code I just have an HMI.KeyPad(); so when I type in a number on the keypad the value doesn't appear on the textbox, I realize I am missing some code but I don't know how to do it? Any suggestions?
Title: Re: Help with the Keypad() function, click event on HMI
Post by: EasyPLC_Master on April 21, 2012, 06:53:05 PM
Can you write here the code you're using?
Title: Re: Help with the Keypad() function, click event on HMI
Post by: fredz0003 on April 21, 2012, 07:35:00 PM
all I have is.

HMI.Keypad();
Title: Re: Help with the Keypad() function, click event on HMI
Post by: EasyPLC_Master on April 21, 2012, 10:33:10 PM
The code that you can use is:

TextBox1.Text = HMI.KeyPad().ToString();

Then if TextBox1 is linked to any variable, this variable will copy the value.
Title: Re: Help with the Keypad() function, click event on HMI
Post by: fredz0003 on April 26, 2012, 02:44:28 AM
Good deal, thanks a lot.