[Gambas-user] Text box event triggered by <enter>

Keith Clark keithclark at ...2185...
Sat Feb 27 16:47:49 CET 2010


Ron,

Perfect and thank you.

Keith

On Sat, 2010-02-27 at 10:40 +0100, Ron wrote:
> 
> Keith Clark wrote:
> > I have a text box where data is entered via a bar code scanner.  The
> > scanner adds an <enter> code at the end of the data.
> >
> > I want that <enter> to trigger some code.  What "event" is triggered by
> > that, if any.
> >
> > Thanks,
> >
> > Keith
> >   
> I use the change event in my project, and check on the correct 
> barcode/string lenght before I do something with it.
> 
> PUBLIC SUB txtBarcode_Change()
> 
> IF Len(txtBarcode.Text) = 13 OR Len(txtBarcode.Text) = 8 THEN
> 
> ELSE
> 
> END IF
> 
> See here for the complete subroutine:
> http://www.domotiga.nl/browser/trunk/DomotiGa/FBarcodes.class#L86
> 
> Regards,
> Ron_2nd.
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list