[Gambas-user] Barcode example for Gambas3

Benoît Minisini gambas at ...1...
Wed Jun 8 15:16:57 CEST 2011


> Pino Zollo wrote:
> > FMain.printer_Draw.49: FMain.printer_Draw.47    Type mismatch: wanted
> > Float, got Null instead
> 
> I am hoping the following will allow for comma decimals (would be grateful
> if you could check) :
> 
> ftp://ftp.drivehq.com/charlesg628/publicfolder/BarcodeG3-0.0.5.tar.gz
> BarcodeG3-0.0.5.tar.gz

The "Case" tests in ChkInput method are incorrect:

	Select Key.Code
	  Case (key["n"] Or Key["N"]) And Key.Alt

does not mean:

	If (Key.Code = Key["n"] Or Key.Code = Key["N"]) And Key.Alt

but:

	If Key.Code = ((Key["n"] Or Key["N"]) And Key.Alt)

And if you want to check against an alphabetic key, you should use Key.Text, 
not Key.Code.

Regards,

-- 
Benoît Minisini




More information about the User mailing list