Datalogic .NET SDK

GetParamString (Method)

 

Syntax

 

public static Boolean GetParamString(Int32 index, out String value);

 

 

Class                           : Decode

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Returns 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 get.

[out]

String

value

On success, the value of the parameter is returned.

 

 

 

 

[return]

Boolean

 

On success, TRUE is returned.

[on error]

FALSE

 

On error, including the parameter index not being supported or not being of string type, FALSE is returned.

 

 

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

Param (Class), Example #015 (2).

 

 

Copyright © Datalogic ADC. All Right Reserved