|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV SYS-CON.TV WEBCASTS |
POWERBUILDER LINKS YOU MUST CLICK ON Techniques A Real-Time Physical Inventory Solution Using PocketBuilder, ASA, and a Wi-Fi Connection
A case study: A physical inventory count is necessary to reconcile the quantity on hand stored in a database
By: Deanne M. Chance
Dec. 26, 2005 01:30 PM
Step 5: Connect to your database
SQLCA.DBMS='odb'
Step 6: Write code to initialize the bar code scanner Add your initialization code to a ue_postopen event:
bar_code.Open()
Step 7: Create a GUI Step 8: Code for the ScanTriggered event Notice, we must specifically state what field we want to put the scanned data into. This is not the case with the Y cable scanners you might have seen at POS stations. These typically emulate the keyboard so it is possible to scan into any text field without further coding. This is not the case with the Symbol. Step 9: Process the scanned data in the clicked event of CB_OK Step 10: Cleanup In the close event of the main window, release the bar code scanner object: bar_code.Close() In the close event of the application object, disconnect from your database: DISCONNECT USING SQLCA; Simple. We're done. Wondering how to learn more? Check out the following links. One of particular interest to the SymbolBarcodeObject is the mobility kit. Here you can find just about anything you want to do with bar codes. These would be implemented as external function calls in PocketBuilder. If you are looking for examples, see Reed Shilt's original implementation of the SymbolBarcodeObject on CodeExchange. Note: Most of these require a handle to the bar code object. This can be obtained by using the DeviceHandle() method. Resources
YOUR FEEDBACK
PBDJ LATEST STORIES . . .
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING POWERBUILDER / SYBASE NEWS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||