PRINT HTML()

From Recital Documentation Wiki
Revision as of 12:08, 6 November 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:YLM to do Template:SELECT INTO OBJECT?

Purpose

Display object as HTML


Syntax

PRINT_HTML(<object-ref>)


See Also

ACLASS(), ADDPROPERTY(), AMEMBERS(), ARRAY(), CLASS, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DODEFAULT(), METHOD, NEWOBJECT(), OBJECT(), PRINT_JSON(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), SET CLASSLIBRARY, WITH


Description

The PRINT_HTML() function is used to display the specified object, <object-ref>, in HTML.

Example

open database southwind
select * from shippers into object shipobj
print_html(shipobj)
<table>
<tr>
<td>1</td><td>Speedy Express</td><td>(503) 555-9831</td>
</tr>
<tr>
<td>2</td><td>United Package</td><td>(503) 555-3199</td>
</tr>
<tr>
<td>3</td><td>Federal Shipping</td><td>(503) 555-9931</td>
</tr>
</table>
class NullData dynamic
    property mCHARACTER
    property mNUMERIC
endclass
 
oNULLDATA = new NullData()
oNULLDATA.mCHARACTER = ""
oNULLDATA.mNUMERIC = 0
oNULLDATA.mLOGICAL = .F.
print_r(oNULLDATA)
Object (refcnt=0)
(
    [mcharacter] =>
    [mnumeric] => 0
    [mlogical] => False
)

Products

Recital, Recital Server