Re: Add to array


Posted by webmaster Guido on March 19, 2001:

In Reply to: Add to array posted by Moody on March 19, 2001:

: Could anyone tell me how to add to array's. I have three edit boxes for information to be stored, but im not sure how to do it.
----
Somewhere in the unit you have set up an array, for example:
var
Ar: array[1..3] of string;

Later on, you put the text of the edits in the array elements:
Ar[1] := Edit1.Text;
Ar[2] := Edit2.Text;
Ar[3] := Edit3.Text;