Difference between revisions of "PRINT R()"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) (→Class) |
Yvonnemilne (Talk | contribs) |
||
| Line 1: | Line 1: | ||
{{YLM to do}} | {{YLM to do}} | ||
| − | |||
| − | |||
==Purpose== | ==Purpose== | ||
| − | + | Display object information in a readable format | |
==Syntax== | ==Syntax== | ||
| − | + | PRINT_R(<object-ref>) | |
==See Also== | ==See Also== | ||
| − | + | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[ARRAY()]], [[CLASS]], [[COMPOBJ()]], [[CREATEOBJECT()]], [[DEFINE CLASS]], [[DODEFAULT()]], [[METHOD]], [[NEWOBJECT()]], [[OBJECT()]], [[REMOVEPROPERTY()]], [[SET CLASSLIBRARY]], [[WITH]] | |
==Description== | ==Description== | ||
| − | |||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
| − | + | open database southwind | |
| + | select * from shippers into name shipobj | ||
| + | print_r(shipobj) | ||
</code> | </code> | ||
| + | <pre> | ||
| + | Dynarray (refcnt=0) | ||
| + | ( | ||
| + | [row1] => Dynarray | ||
| + | ( | ||
| + | [shipperid] => 1 | ||
| + | [companyname] => Speedy Express | ||
| + | [phone] => (503) 555-9831 | ||
| + | ) | ||
| + | [row2] => Dynarray | ||
| + | ( | ||
| + | [shipperid] => 2 | ||
| + | [companyname] => United Package | ||
| + | [phone] => (503) 555-3199 | ||
| + | ) | ||
| + | [row3] => Dynarray | ||
| + | ( | ||
| + | [shipperid] => 3 | ||
| + | [companyname] => Federal Shipping | ||
| + | [phone] => (503) 555-9931 | ||
| + | ) | ||
| + | ) | ||
| + | </pre> | ||
==Products== | ==Products== | ||
| − | + | Recital, Recital Server | |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
| + | [[Category:Objects]] | ||
| + | [[Category:Objects Functions]] | ||
Revision as of 16:37, 5 November 2009
Purpose
Display object information in a readable format
Syntax
PRINT_R(<object-ref>)
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), ARRAY(), CLASS, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DODEFAULT(), METHOD, NEWOBJECT(), OBJECT(), REMOVEPROPERTY(), SET CLASSLIBRARY, WITH
Description
Example
open database southwind select * from shippers into name shipobj print_r(shipobj)
Dynarray (refcnt=0)
(
[row1] => Dynarray
(
[shipperid] => 1
[companyname] => Speedy Express
[phone] => (503) 555-9831
)
[row2] => Dynarray
(
[shipperid] => 2
[companyname] => United Package
[phone] => (503) 555-3199
)
[row3] => Dynarray
(
[shipperid] => 3
[companyname] => Federal Shipping
[phone] => (503) 555-9931
)
)
Products
Recital, Recital Server