Difference between revisions of "AMEMBERS()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 25: | Line 25: | ||
<code lang="recital"> | <code lang="recital"> | ||
class myclass | class myclass | ||
− | property last_name | + | property last_name |
− | property first_name | + | property first_name |
− | property email | + | property email |
endclass | endclass | ||
Line 40: | Line 40: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Objects]] | ||
+ | [[Category:Objects Functions]] |
Revision as of 09:50, 2 June 2009
Class
Objects
Purpose
Function to load the properties of an object into an array
Syntax
AMEMBERS(<array-name>,<object-ref>])
See Also
ACLASS(), ADDPROPERTY(), CLASS, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DODEFAULT(), METHOD, NEWOBJECT(), REMOVEPROPERTY(), SET CLASSLIBRARY, WITH
Description
The AMEMBERS() function is used to load the names of the properties of the specified object into an array and return the number of properties loaded (and hence the number of array elements).
The <array-name> array will be created if it does not already exist.
Example
class myclass property last_name property first_name property email endclass omyclass = new myclass() dialog box str(amembers(myarray,omyclass)) && displays 3 display memory && shows the array contents
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer