VADELIA |
SADELIA |
WADELIA |
EADELIA |
|
(I/B) (C/S) |
(B) (S) |
(I/B) (C/S) |
(B) (C/S) |
Section for use
DECLARATION
This order is only used in the context of a Java platform (Java Client, Cloud Client, Web Client, Event Client, Java Server).
Syntax
REFCLASSVariable = new Class()
Class is the Adelia class associated with the declaration of the REFCLASSVariable variable via the 4GL order:
REF_CLASS(Class) REFCLASSVariable
VariableREFCLASS.ArrayAttribute = new AdeliaType()(SizeofArray)
AdeliaType is the Adelia definition corresponding to the definition of the attribute ArrayAttribute in the class.
SizeofArray => positive numeric constant integer, or numeric Adelia variable.
Description
Used to instantiate a REF_CLASS variable, or an array-type Adelia class attribute of indefinite length.
For example
/* FAMILY Class */
*ATTRIBUTES
{
REF_CLASS(PERSON) Father;
REF_CLASS(PERSON) Mother;
ALPHA(30) Town;
REF_CLASS(PERSON) Children();
NUM_BIN_4 ArrayNumBin4();
}
REF_CLASS(PERSON) oPerson
REF_CLASS(FAMILY) oFamily
NUM_E(3,0) ChildrenNb
oPersoe = new PERSON()
oFamily = new FAMILY()
ChildrenNb = 3
oFamille.Children = new PERSON()(ChildrenNb)
oFamily.ArrayNumBin4 = new NUM_BIN_4()(5)