Datalogic .NET SDK

GetWedge (Method)

 

Syntax

 

public static bool GetWedge(WedgeType inputType);

 

 

Class                           : Decode

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Returns the current keyboard wedge setting for a particular input data type (barcode, MSR, etc.).

 

 

Parameters Table

 

Type

Parameter

Description

[in]

WedgeType

inputType

Indicates the type of input data whose wedge setting is to be  queried.

 

 

 

 

[return]

bool

 

FALSE is returned if the wedge feature is disabled for the input data type, and TRUE is returned otherwise.

[on error]

FALSE

 

If an invalid input type is specified, FALSE is returned.

 

 

Example

 

   private void btnWedge_Click(object sender, EventArgs e)

   {

      bool b = false;

      bool bIsEnabled = false;

      // “WedgeStatus” is a boolean global member.

 

      if (WedgeStatus == false)

      {

         WedgeStatus = true;

         btnWedge.Text = "Disable Wedge";

      }

      else

      {

         WedgeStatus = false;

         btnWedge.Text = "Enable Wedge";

      }

 

      b = Decode.SetWedge(WedgeType.Barcode, WedgeStatus);           

      bIsEnabled = Decode.GetWedge(WedgeType.Barcode);

 

   }

 

 

 

 

See Also

Example #015 (4).

 

Copyright © Datalogic ADC. All Right Reserved