WireLess Studio Widgets Developer's Guide |
Retrieves the type of the last input for a WS_FIELD widget.
SHORT GetLastInputTypeBydId(SHORT usObjectId);
SHORT GetLastInputTypeByName(LPCTSTR sObjectName);
On success, GetLastInputType returns one of the following values:
On error GetLastInputType returns WLINPUTERROR. To get extended information, call WStError::GetLastErrorCode.
The return values can be found on the RFIOConstants 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 iLastInputType = oWidget.GetLastInputTypeById(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 | GetLastBarCodeType
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 |