About VB Examples.htm
The Visual Basic sample files included in these folders were developed using Microsoft VB 6.0. Although you must have Visual Basic installed on your computer to run these examples, you can view the VB code by opening the .FRM files using a standard text editor (such as the one you are using know to read this document). Before running these samples from your Visual Basic development environment, you must first install WinMark Pro and run it to select the proper lens for your application. Then close WinMark Pro and run your VB application (WinMark Pro should never be open at the same time as your VB application).
Each Visual Basic program is described below. Note that files for each VB application are bundled using WinZip as they must be kept together.
WMAddLine - The WMAddLine application provides multiple command buttons which represent many of the functions available through the WinMark Pro ActiveX control. These functions allow you to add, rotate, and mark objects such as lines, rectangle, circles, barcodes, etc.
Luggage - The Luggage Tag application allows an operator to manually enter data to be printed onto a luggage tag by tabbing through the predefined name and address fields.
TimerSN - The Timer Serial Number application uses I/O automation within the VB code and a timer routine to mark a serial number that must reset to zero on every hour change. The last date, time, and serial number marked are stored in Window’s System Registry to provide recovery in the event of a system crash.
Spreadsheet - The Spreadsheet application pulls data from an Excel spreadsheet file and uses that data to print dog-tag type information. A WinMark .mkh mark file is not necessary for this application because the mark file and marked objects are created as needed within the VB code.
MarkLoop - The Mark Loop application illustrates a typical WinMark Pro automation scheme where WinMark Pro waits for a "start mark" input to begin marking and then signal parts handling equipment that the laser is on - marking, or off - ready for a new part to be positioned.
SetDigitalBits - The SetDigBits application illustrates how WinMark Pro's SetDigitalBit and GetDigitalBit ActiveX methods are used to set/clear outputs or read input bit status.
To obtain sample VB files or to request help with using the WinMark Pro ActiveX control, contact Chris Nelson via email at firstname.lastname@example.org or at email@example.com.