PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Scanning/Parsing EAN Barcodes
Scanning/Parsing EAN Barcodes
Iniciado por dsprosystems, 17,nov. 2016 17:06 - No hay respuesta
Publicado el 17,noviembre 2016 - 17:06
Hi

Don't know if anyone can help or has had experience with this in WX?

I am developing a hand held barcode scanning project on WDMobile 21. Focus is in an EDIT control and an EAN128 barcode is scanned, this correctly populated the EDIT control. Within the data returned, i need to parse out/identify the separator FNC1 used to identify the end of variable data within certain AI's

e.g a barcode might be 1516123110ABC11160101 (human readable would be (15)161231(10)ABC(11)160101

The AI's (15) use by date and (11) manufacture date are fixed length data but (10) batch code is variable length therefore FNC1 is used to mark the end of the data allowing you to parse the next AI

Does anyone know the best way in Wlanguage/functions to do this from the data captured in the EDIT control (or keyboard input buffer) from the scanner ?

Any help would be much appreciated

Regards
Dave