EVENTS

What is an “Event”

Events are pieces of code that are executed in response to “characteristic events”;
After selecting an object, you can see at the side between the properties of the object, the events available dedicated it.
Events can be associated both to individual objects (see pages related to single object),

FDeventi17_en

both to the form as a whole ( for more info “FORM OBJECT”).

FDeventi_en

Clicking next to the name of the event FDeventi33 you are accessing the “event handler”, within which you can write code that describes the event itself.

The event-handling code using the programming languages with which Qualiware has been developed:

  • dBL (dBASE) for client/server vers.
  • Visual Basic for vers. Web vers. 

    DBL EVENT HANDLER’S  EXAMPLE

FDeventi13

This code fragment handles the “change” to a field where you enter the number of a DDT chosen from a list.
The value is filled in automatically the “quantity” field with the sum of the amounts on lines of DDT specified.

Event syntax checking

In the “Event Handler” button “Check syntax” which allows you to check the correctness of the syntax of the event.
The editor also features syntax highlighting and AutoComplete function of code that shows the objects on the form after you type the string “form.

FDeventi11_en