
It is pretty important for me to make this work as it is a mayor part of a piece of business software I am developing.
Hope someone can help me

- I used http://mergext.com/home/mergav/ as a guide.
- Target platform is android.
- Selected mergeAV in the inclusions
Only two buttons.
One to show all barcode types available (does not work)
One to get barcode
One field that I want to show the text of the barcode.
'Show all barcode types' button code:
Code: Select all
on mouseUp
put mergAVCamBarcodeTypes() into barcodetypesdata
answer "Alle barcode types supported: ",CR,barcodetypesdata
end mouseUp
Code: Select all
local pBarcode, pBarcodeType
on mouseUp
-- mergAVCamStartBarcodeReader
-- message mergAVCamBarcodeFound pBarcode,pBarcodeType
put empty into pBarcodeType
put empty into pBarcode
if the label of me = "Scan barcode" then
set the label of me to "Stop Scanning"
mergAVCamStartBarcodeReader
else
set the label of me to "Scan barcode"
mergAVCamStopBarcodeReader
answer "Stopped scanning for barcodes!"
end if
end mouseUp
on mergAVCamBarcodeFound pBarcode,pBarcodeType
-- Parameters:
-- pBarcode - the text or number read from the barcode
-- pBarcodeType - the type string for the barcode
answer "Barcode text or number read: ",pBarcode
put pBarcode into fld "BarcodeText"
end mergAVCamBarcodeFound
on mergAVCamBarcodeFinished
answer "Barcode finished with following text or number read: ",pBarcode
end mergAVCamBarcodeFinished