Datalogic .NET SDK

TestParams (Method)

 

Syntax

 

public static long TestParams(DecodeParam[] paramArray);

 

 

Class                           : Decode

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Tests the valid range of values for one or more label programming parameters.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

DecodeParam[]

paramArray

Array of Datalogic.API.DecodeParam structures indicating the parameters to test. Each array element contains the index and new value of a parameter to test.

 

 

 

 

[return]

long

 

Zero is returned if all parameters and values are valid, otherwise non-zero is returned.

[on error]

 

 

If an invalid entry exists, the return value is the parameter index with the error, OR'ed together with one of the Parameter Limit Indicator codes.

 

 

Example

 

   private void btnTestParams_Click(object sender, EventArgs e)

   {

      long lTestParams = -1;

      DecodeParam[] dcdParam = new DecodeParam[3];

 

      // Setting Params and their values

      dcdParam[0].index = Param.CODE39_MIN_LENGTH;

      dcdParam[0].val = (int)(6);                     // Value to define MinLength

      dcdParam[1].index = Param.CODE39_MAX_LENGTH;

      dcdParam[1].val = (int)(22);                    // Value to define MaxLength

      dcdParam[2].index = Param.CODE39_LEVEL;

      dcdParam[2].val = (int)(1);              // True

      // Test Params static function.

      lTestParams = Decode.TestParams(dcdParam);

   }

 

 

 

 

See Also

DecodeParam (Struct), Example #014.

 

 

Copyright © Datalogic ADC. All Right Reserved