Difference between revisions of "WITH"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Barrymavin (Talk | contribs) (→Example) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 10: | Line 10: | ||
==See Also== | ==See Also== | ||
− | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS() | + | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[COMPOBJ()]], [[CREATEOBJECT()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[LOADOBJECT()]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]] |
==Description== | ==Description== | ||
Line 18: | Line 18: | ||
<code lang="recital"> | <code lang="recital"> | ||
with oProduct | with oProduct | ||
− | .productname = "Lianja" | + | .productname = "Lianja App Builder" |
− | .productversion = " | + | .productversion = "1.0" |
− | .productyear = " | + | .productyear = "2013" |
endwith | endwith | ||
</code> | </code> |
Latest revision as of 13:06, 5 December 2017
Contents
Purpose
Specify multiple properties for an object
Syntax
WITH <object>
<property definitions>
ENDWITH
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, LOADOBJECT(), NEWOBJECT(), OBJECT(), PRINT_HTML(), PRINT_JSON(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT
Description
The WITH...ENDWITH block is used to specify multiple properties for an object. The object name is specified in <object>. The <property definitions> consists of property assignments. The properties are specified using preceding dot notation.
Example
with oProduct .productname = "Lianja App Builder" .productversion = "1.0" .productyear = "2013" endwith