Minggu, 24 Mei 2009

Characteristics of PowerBuilder Objects


There are several character of powerbuilder objects that are under programmer control, they are :

• Attributes
• Events
• Scripts

Attributes are the properties of an object that control how it appears and how it behaves. They are frequently called properties in powerbuilder. Each different class has properties which are peculiar to that class. Properties can be define by he programmer when she is designing the system. They can also be change while the program is running.

Events are thing that can happen to an object. When you write come script to handle an event for an object, it is called trapping the event. Three event that are commonly trapped are the clicked event, the open event and the close event. You might be write some script associated with the clicked event of a command button. Thie code would be called when the button was clicked.

Script are the blocks of code that are stored inside each object. Unlike structure programming environments, there is no concept of a single contigoues program in powerbuilder. Instead the script reside inside an object. The are associates with evens for that object and are what governs the behavior of the application.

Tidak ada komentar:

Posting Komentar