WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStWidget class reference

GetLastInputType

Retrieves the type of the last input for a WS_FIELD widget.

Ole declaration

SHORT GetLastInputTypeBydId(SHORT usObjectId);

SHORT GetLastInputTypeByName(LPCTSTR sObjectName);

Parameters
sObjectName
The name of the target widget.
usObjectId
The id of the target widget.
Return Value

On success, GetLastInputType returns one of the following values:

On error GetLastInputType returns WLINPUTERROR. To get extended information, call WStError::GetLastErrorCode.

Remarks

The return values can be found on the RFIOConstants enumeration.

Example
C#
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);
Visual Basic 6 (Full Example: FieldDemoModule.bas.txt)
Public wsWidget As New WStWidget
...
If wsWidget.GetLastInputTypeByName("field") = WLSCANTYPE Then
	sEventResultText = sEventResultText + " BCT: " + _
		sNames(wsWidget.GetLastBarcodeTypeByName("field"))
End If
...
See also

ModifyDisplayMode | ModifyInputMode | ModifyInputDevices | ModifyLenCtrlMode | SetKeyboardMode | SetScannerConfigFile | SetMaxLength | GetLastBarCodeType

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference