18.01.2013 Views

LotusScript for Visual Basic Programmers - IBM Redbooks

LotusScript for Visual Basic Programmers - IBM Redbooks

LotusScript for Visual Basic Programmers - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Notes differs significantly from <strong>Visual</strong> <strong>Basic</strong>. It is easier to change the<br />

properties of controls in <strong>Visual</strong> <strong>Basic</strong> when compared to <strong>LotusScript</strong>.<br />

Different Windows events are provided <strong>for</strong> the same controls and the<br />

names of these events are also sometimes different.<br />

For example, a button in <strong>Visual</strong> <strong>Basic</strong> has the following events:<br />

Click<br />

DragDrop<br />

DragOver<br />

GotFocus<br />

KeyPress<br />

KeyDown<br />

KeyUp<br />

LostFocus<br />

MouseDown<br />

MouseMove<br />

MouseUp<br />

In addition, you can cause the <strong>Visual</strong> <strong>Basic</strong> Button_Click event to execute<br />

by setting the implied .Value property of the button to true, as in<br />

cmdCancel = True.<br />

In <strong>LotusScript</strong>, the events provided <strong>for</strong> a button are:<br />

Click<br />

Terminate<br />

Initialize<br />

ObjectExecute<br />

Options<br />

Declarations<br />

Notice the ability to include declarations directly within an object, such as a<br />

button.<br />

28 <strong>LotusScript</strong> <strong>for</strong> <strong>Visual</strong> <strong>Basic</strong> <strong>Programmers</strong>

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

Saved successfully!

Ooh no, something went wrong!