Share via


Scale.DisplayText Method

Updates display text.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Usage

'Usage
Dim data As String
Dim scale1 As Scale
scale1.DisplayText(data)

Syntax

'Declaration
Public MustOverride Sub DisplayText( _
    ByVal data As String _
)
public abstract void DisplayText(
    string data
);
public: abstract Void DisplayText(
    String^ data
);
public abstract void DisplayText(
    System.String data
);
public abstract function DisplayText(
     data : String
) : Void;

Parameters

  • data
    The string of characters to display. The format of this data depends upon the value of the BinaryConversion property.

Remarks

Call DisplayText to update the text shown on the integrated display. To clear the display, call DisplayText with an empty string ("").

If CapDisplayText is FALSE, the device does not support text display and DisplayText will fail.

DisplayText returns void if successful, and it can throw the following exception:

Value

Meaning

Illegal

An invalid text string was specified – the text contains more characters than allowed in MaxDisplayTextChars, or displaying text is not allowed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

Scale Class
Scale Members
Microsoft.PointOfService Namespace
CapDisplay
CapDisplayText
MaxDisplayTextChars