Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening Barcode Scanner returning error even when setting ScannerName

8 views
Skip to first unread message

SaLiMoS

unread,
Mar 16, 2010, 5:54:44 AM3/16/10
to
Hello Experts,

Well i am using a MOTOROLA MC75, and i am using the
SymbolBarCodeScanner object to connect to the barcode scanner device,
the problem is when i am connecting i am getting an error with the
return value -7 which means “Error opening the specific
scan device”. i did some research and i found out in several
discussion topics that i might get this error if i didn't specify the
scanner name property.
So i did specify it to "MOTOROLA MC75" and "SCN1:", But still it
returns false Boolean and still giving error

Could please let me know the compatible name of "MOTOROLA MC75"
scanner?

You help is really appreciated.

The code used is:

integer li_rtn
boolean lb
SymbolBarCodeScanner bar_code

bar_code = create SymbolBarCodeScanner
//devicehandle(this)
lb = bar_code.ScannerName = "MOTOROLA MC75"
messagebox("Scanner Name",string(lb))

li_rtn = bar_code.Open()
messagebox("Scanner Open",string(li_rtn))
li_rtn = bar_code.ScanNoWait()
messagebox("Scanner ScanNoWait",string(li_rtn))
//li_rtn = bar_code.DeviceHandle()
li_rtn = bar_code.Status( )
messagebox("Scanner Stauts",string(li_rtn))
int iRet
string stmp
iRet = bar_code.RetrieveData()
If iRet = 1 Then
stmp = bar_code.ScannedData
sle_2.text=string(bar_code.ScannedSymbology)
sle_1.Text = stmp
//cb_ok.TriggerEvent(‘clicked')
End If
iRet = bar_code.ScanNoWait()
bar_code.Close()

Best regards

Mike T

unread,
Apr 9, 2010, 1:22:52 PM4/9/10
to
We use the MC50's and I have never bothered to use these functions.

Simply configure the scanner to add a "+" suffix,

Then in the modified event put

if right (input.text,1) = "+" then
input.text = left (input.text, len(input.text - 1) )
.......whatever
end if

Mike

0 new messages