Read Sharp RZ-X750 (serv.man6) Service Manual online
MSR(Magnetic Stripe Reader)
31
SHARP
Example
[Visual Basic]
Private WithEvents oMSR As OPOSMSR
Set oMSR = New OPOSMSR
// Open
RetVal = oMSR.Open("DefaultMsr")
// Claim
RetVal = oMSR.ClaimDevice(50)
// Enable
oMSR.DeviceEnabled = True
// DataEvent Enable
oMSR.DataEventEnabled = True
// ParseDecodeData
oMSR.ParseDecodeData = True
// DataEvent
// Private Sub oMsr_DataEvent(ByVal newVal As Long)
MsrTrack1 = oMSR.Track1Data
MsrTrack2 = oMSR.Track2Data
MsrTrack3 = oMSR.Track3Data
oMsr.DataEventEnabled = True
End Sub
// if oMSR.ParseDecodeData = True
AccountNumberText = oMSR.AccountNumber
SurNameText = oMSR.Surname
FirstNameText = oMSR.FirstName
ExpirationDateText = oMSR.ExpirationDate
// Disable
oMSR.ParseDecodeData = False
Click on the first or last page to see other RZ-X750 (serv.man6) service manuals if exist.