Products Downloads


French version


 

 

 

 

VADELIA

 

 

 

 

(B) (C)

 

 

 

Section for use

DECLARATION

 

This instruction is only used in a VADELIA program generated in a Cloud-type Java client or VADELIA Batch program generated in a RESTful Web service-type Java client.

 

 

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)

 

 

↑ Top of page


  • Aucune étiquette