Cancel
Showing results for 
Search instead for 
Did you mean: 

store arrays inside an array

Builder
Builder

is it possible to create an array to store arrays?

 

example:

is

array_A: string[];

array_B: string[];

array_Master: object[2];

 

do

array_Master[1]:= array_A;

array_Master[2]:= array_B;

 

end;

 

1 REPLY

Re: store arrays inside an array

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you can use the method makeArray to create your array e.g.

 

is
	array_A:string[];
	array_B:string[];
	array_Master:any;
do
	
	array_A:=makeArray("one","two");
	array_B:=makeArray("three","four");
	array_Master:= makeArray(array_A,array_B);
	print array_Master[2][1]; 
end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net