WireLess Studio Widgets Developer's Guide |
Retrieves the type of the last barcode read on a WS_FIELD or a WS_SCANNER_CONTROLLER widget.
SHORT GetLastBarcodeTypeById(SHORT usObjectId);
SHORT GetLastBarcodeTypeByName(LPCTSTR sObjectName);
On success, GetLastBarcodeType returns one of values described on RFIO.LastBarcodeType.
On error GetLastBarcodeType returns BCERROR. To get extended information, call WStError::GetLastErrorCode.
The return values can be found on the RFBarcodeConstants enumeration.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iFieldId = 33; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_FIELD, iFieldId, "", 0,0, 50, 50, "123"); short iLastBarcodeType= oWidget.GetLastBarcodeTypeById(iFieldId);
Public wsWidget As New WStWidget ... If wsWidget.GetLastInputTypeByName("field") = WLSCANTYPE Then sEventResultText = sEventResultText + " BCT: " + _ sNames(wsWidget.GetLastBarcodeTypeByName("field")) End If ...
ModifyDisplayMode | ModifyInputMode | ModifyInputDevices | ModifyLenCtrlMode | SetKeyboardMode | SetScannerConfigFile | SetMaxLength | GetLastInputType
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |