Is there a method in Scripter available to determine the size of an Array (like i:= sizeof(Array))
You can use Low() and High() functions to determine the initial and final index of the array. Size should be High-Low+1
Can you please Show an example? I tried this code below and it did not work.
var
NewArray : Array;
i: Integer;
begin
NewArray[1,2,3,4,5];
i:= NewArray.High();
end
Here:
var
NewArray: Variant;
h, l, size: Integer;
begin
NewArray := [1,2,3,4,5];
h := High(NewArray);
l := Low(NewArray);
size := h - l + 1;
end;
Thank you !!!< ="cosymantecnisbfw" co="cs" id="SILOBFWID" style="width: 0px; height: 0px; display: block;">