Re: [Gambas-user] Hello all!!! How i can make my program to under...

2009-05-08 Thread Sergio A. Hernandez
I'm trying to imagine all possible scenarios, and the best way Gambas can guess when you finish to enter data is the LostFocus event. The keypress event is not the best option for your want to do. Or probably instead to change the value on the TextBox probably you may want to change a variable on

Re: [Gambas-user] Hello all!!! How i can make my program to under...

2009-05-07 Thread Sergio A. Hernandez
Probably the issue here is the event in which your code is. When Gambas recognize the 'c' it changes .text to 1, that is why you are getting the "1l", What is the event you are using to perform the textbox validation? Try to change your validation code to the LostFocus() event. Probably will work

Re: [Gambas-user] Hello all!!! How i can make my program to under...

2009-05-07 Thread Steven James Drinnan
Where are you checking this? Key press event. I would wait for another key like the return key. And then check. if key.code = key.return then if textbox1.text="c" then textbox1.text="1" else if textbox1.text="cl" then textbox