Datalogic .NET SDK
GetParams (Method)
Syntax
public static bool GetParams(DecodeParam[] paramArray);
Description
Returns the values of one or more label programming parameters.
Parameters Table
|
Type |
Parameter |
Description |
[in/out] |
DecodeParam[] |
paramArray |
Array of Datalogic.API.DecodeParam structures that indicate the parameters to get. Each array element’s index member is initialized with the index of the parameter to get, and the value member is filled in upon return with the value of the parameter. |
|
|
|
|
[return] |
bool |
|
TRUE is returned on success, otherwise a FALSE is returned. |
[on error] |
-1 |
If an unsupported index is included in the parameter array, its value will be set to –1, but the return value will still be true. |
Example
private void btnSetMultiParam_Click(object sender, EventArgs e) { bool bSuccess2 = false; DecodeParam[] dcdParam2 = new DecodeParam[3];
// Set manually what kind of values we want to retreive. dcdParam2[0].index = Param.CODE39_MIN_LENGTH; dcdParam2[1].index = Param.CODE39_MAX_LENGTH; dcdParam2[2].index = Param.CODE39_LEVEL; // Get bSuccess2 = Decode.GetParams(dcdParam2); }
|
See Also
DecodeParam (Struct), Example #013.
Copyright © Datalogic ADC. All Right Reserved