Datalogic .NET SDK

GetParamLimits (Method)

 

Syntax

 

public static bool GetParamLimits(DecodeParamLimit[] paramArray);

 

 

Class                           : Decode

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

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

 

 

Parameters Table

 

Type

Parameter

Description

[in/out]

DecodeParamLimits[]

paramArray

Array of DecodeParamLimit structures that indicate for which parameters to get limits.  Each array element's index member is initialized with the index of a parameter of interest, and the rest of the structure is filled in upon return with the  minimum and maximum values that the parameter can accept.

 

 

 

 

[return]

bool

 

TRUE is returned on success, otherwise FALSE is returned.

[on error]

-1

 

Any unsupported parameter index will be assigned limits of 0 to --1 (=0xffffffff), but the return value will still be TRUE.

 

 

Example

 

   private void btnTestParams_Click(object sender, EventArgs e)

   {

      DecodeParamLimit[] dcdParamLimit = new DecodeParamLimit[3];

 

      // Get Param Limit static function test.

      dcdParamLimit[0].index = (uint)Param.CODE39_MIN_LENGTH;

      dcdParamLimit[1].index = (uint)Param.CODE39_MAX_LENGTH;

      dcdParamLimit[2].index = (uint)Param.CODE39_LEVEL;

 

      // Retreive limits

      bSuccess = Decode.GetParamLimits(dcdParamLimit);

   }

 

 

 

See Also

DecodeParamLimit (Struct), Example #014.

 

 

Copyright © Datalogic ADC. All Right Reserved