Progress
ADM 2 Reference
getpropname and setpropname Functions
Every public-readable property must have a function defined to return the current value of the property. Similarly, every public-writable property must have a function defined to set a new value for the property. These functions conform to certain conventions:
- get — The get function identifier takes the form
get
propname. The function accepts no arguments, and returns the current value of the property. It can also perform other processing, if needed.- set — The set function identifier takes the form
set
propname. It accepts a single argument—the new value for the property—and returns TRUE/FALSE depending on whether it succeeded in changing the value. It can perform additional processing, if needed.A very small number of these functions vary slightly from the model described here, but these differences are not significant.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |