Share via


Scale.DataEvent Event

Notifies the application that an asynchronous ReadWeight has completed.

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

Usage

'Usage
WithEvents scale1 As Scale
Function scale1_DataEvent(sender As Object, _
    e As DataEventArgs) As Void
    Handles scale1.DataEvent
End Function

Syntax

'Declaration
Public MustOverride Event DataEvent As DataEventHandler
public abstract event DataEventHandler DataEvent;
public: abstract event DataEventHandler^ DataEvent;
public abstract  void add_DataEvent(DataEventHandler handler);
public abstract  void remove_DataEvent(DataEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Remarks

If the scale is a price-calculating scale, the unit price is placed in the UnitPrice property and the calculated sales price is placed in the SalesPrice property before DataEvent is delivered.

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