Difference between revisions of "WITH"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=WITH…ENDWITH=
 
 
 
==Class==
 
Objects
 
 
 
 
==Purpose==
 
==Purpose==
 
Specify multiple properties for an object
 
Specify multiple properties for an object
Line 12: Line 5:
 
==Syntax==
 
==Syntax==
 
WITH <object>
 
WITH <object>
 +
 
<property definitions>
 
<property definitions>
 +
 
ENDWITH
 
ENDWITH
  
  
 
==See Also==
 
==See Also==
[[DEFINE CLASS]], [[CLASS]]
+
[[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.
  
  
Line 27: Line 22:
 
<code lang="recital">
 
<code lang="recital">
 
with oProduct
 
with oProduct
.productname = "Recital Mirage"
+
.productname = "Recital"
.productversion = "3.0"
+
.productversion = "10.0"
.productyear = "2008"
+
.productyear = "2010"
 
endwith
 
endwith
 
</code>
 
</code>
Line 35: Line 30:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Objects]]
 +
[[Category:Objects Commands]]

Latest revision as of 15:13, 14 December 2009

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


Products

Recital Server, Recital