05.01.2013 Views

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Object Creation<br />

Event Handling<br />

Visual Basic for Applications<br />

Legi 3.3.0 supports the following ways to create its objects.<br />

Dim MyLabel as Object<br />

Set MyLabel = CreateObject(“Legi32.label”)<br />

This method follows ActiveX conventions and creates an object with a<br />

late bind. A reference to the object is created during program<br />

execution.<br />

Dim MyLabel as Legi32.label<br />

Set MyLabel = CreateObject(“Legi32.label”)<br />

This method creates an object with an early bind. A reference to the<br />

object is created during program compilation to increase performance.<br />

Dim MyLabel as Object<br />

Set MyLabel = New Legi32.label<br />

This method requires clients to use the Type Library. It creates an<br />

object with an early bind. A reference to the object is created during<br />

program compilation to increase performance.<br />

Legi 3.3.0 objects can notify client applications when predetermined<br />

label printing events occur. For example, Legi 3.3.0 implements a<br />

Notification object to notify a client when a label print request is sent<br />

to the Windows print manager. This notification process is called<br />

“firing an event.”<br />

An object that fires an event is called an event source. Declare a<br />

variable’s object using the WithEvents keyword.<br />

Legitronic User Manual (v3.4) 138

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!