[Gambas-user] Keyascii =0 ??

Rob sourceforge-raindog2 at ...94...
Mon Jan 19 04:40:30 CET 2004


On Sunday 18 January 2004 22:44, Rizky Tahara Shita again wrote:
> in vb i can do that with keyascii=0, since gambas use key as
> class (CMIIW) so what should i do then ? have any sample code

You *still* want the new keyword:

STOP EVENT

That will prevent the alphabetic keys from being inserted into 
the text box at all.

Or, you can change the SUB TextBox1_KeyPress to FUNCTION 
TextBox1_KeyPress as Boolean and Return True to accomplish the 
same thing, but STOP EVENT seems a lot cleaner.

Rob





More information about the User mailing list