Progress
ADM 2 Reference
The Need For Two Different Syntaxes
Properties store the current state of the object, so reading and writing them is a high-frequency activity. It pays to optimize high-frequency activities, even when the net gain per operation is small. The pseudo-functions provide that slight optimization, and should be used in code that runs inside a SmartObject. Code that runs outside the Smart world—basic 4GL and Open4GL routines—should use the conventional get/set functions.
Figure 2 shows the
{get}
code reformatted and commented. The{set}
code is very similar.
Figure 2: Commented Source Code Of GET Pseudo-function
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |