Difference between revisions of "WITH"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Specify multiple properties for an object | Specify multiple properties for an object | ||
− | |||
==Syntax== | ==Syntax== | ||
Line 9: | Line 8: | ||
ENDWITH | ENDWITH | ||
− | |||
==See Also== | ==See Also== | ||
[[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[CLASS]], [[CLASS - Methods]], [[CLASS - Parameters]], [[CLASS - Properties]], [[CLASS - Scoping]], [[COMPOBJ()]], [[CREATEOBJECT()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[LOADOBJECT()]], [[METHOD]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]] | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[CLASS]], [[CLASS - Methods]], [[CLASS - Parameters]], [[CLASS - Properties]], [[CLASS - Scoping]], [[COMPOBJ()]], [[CREATEOBJECT()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[LOADOBJECT()]], [[METHOD]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]] | ||
− | |||
==Description== | ==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. | 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== | ==Example== | ||
Line 28: | Line 24: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Objects]] | [[Category:Objects]] | ||
− |
Revision as of 09:18, 7 December 2012
Contents
Purpose
Specify multiple properties for an object
Syntax
WITH <object>
<property definitions>
ENDWITH
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), CLASS, CLASS - Methods, CLASS - Parameters, CLASS - Properties, CLASS - Scoping, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, LOADOBJECT(), METHOD, 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 = "Recital" .productversion = "10.0" .productyear = "2010" endwith