Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Credit card swipe
Message
From
03/03/2010 21:42:12
 
 
To
01/03/2010 17:23:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01451846
Message ID:
01452399
Views:
70
>>Hi All:
>>
>>I have a form that has a label: 'Please swipe the Credit card or press escape'. It also has an edit box that has focus, so that when the credit card is swiped about 50 characters are entered.
>>
>>How do I execute a method when either: escape is pressed OR the characters have finished being entered from the swipe?
>>
>>Thanks,
>>
>>Yossi
>
>Usually a final character (end sentinel) is passed to let you know that the reader has finished passing data from the last swipe. Check for that ascii value or escape in the keypress or programmatic change event. Is the reader a usb hid device or comm? If comm, read til you receive the expected last char in the oncomm and if hib usb, you'll have to check the keypress or programmatic changed (whichever one the reader fires). The start sentinel is typically a % and the end sentinel is typically a ? but it may differ by company or state.
>
>See: http://money.howstuffworks.com/personal-finance/debt-management/credit-card2.htm
>http://www.answers.com/topic/magnetic-card

TC:

Thanks for the info. Please see my answer to Paul.
Previous
Reply
Map
View

Click here to load this message in the networking platform