Datalogic .NET SDK
SetParamString (Method)
Syntax
public static Boolean SetParamString(Int32 index, String val);
Description
Sets the value of a single label programming parameter.
This method should be used with the parameter: Param.LABEL_SUFFIX, Param.LABEL_PREFIX and Param.SEPARATOR.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
Int32 |
index |
The index of the label programming parameter to set. |
[out] |
String |
val |
The new value of the parameter. |
|
|
|
|
[return] |
Boolean |
|
True is returned on success, otherwise false is returned. A FALSE will be returned if an unsupported index is used, or if an attempt is made to set a parameter to a value outside its valid limits. |
[on error] |
GetLastWin32Error() |
When the method fails, System.Runtime.InteropServices.Marshal.GetLastWin32Error will return an integer representation of the Datalogic.API.DecodeErrorCode enumeration |
Example
private void btnParamStr_Click(object sender, EventArgs e) { bool bSuccess1 = false; bool bSuccess2 = false; String val = String.Empty;
bSuccess1 = Decode.SetParamString(Param.LABEL_PREFIX, “ABC”); bSuccess2 = Decode.GetParamString(Param.LABEL_PREFIX, out val);
}
|
See Also
System.Runtime.InteropServices.Marshal.GetLastWin32Error, DecodeErrorCode (Enum), Param (Class), Example #015 (2).
Copyright © Datalogic ADC. All Right Reserved