Difference between revisions of "WITH"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 18: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
with oProduct
 
with oProduct
.productname = "Recital"
+
.productname = "Lianja"
 
.productversion = "10.0"
 
.productversion = "10.0"
 
.productyear = "2010"
 
.productyear = "2010"

Revision as of 01:38, 9 December 2012

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 = "Lianja"
.productversion = "10.0"
.productyear = "2010"
endwith