[Lazarus] Problem growing an array
appjaws
lazarus at appjaws.plus.com
Fri Jan 25 19:38:02 CET 2013
On 25/01/13 18:26, Howard Page-Clark wrote:
> On 25/1/13 3:55, appjaws wrote:
>> Hi,
>> Could one of you experts look at my code please.
>> My program crashes after the first set of strings are added because -- I
>> think -- the length is not updating.
>> The following is just a snipet.
>
> It's hard to tell from a snippet, but I don't see anywhere that you are
> initialising the values of your array indices x and y.
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
Thank you for your reply,
procedure TForm1.MenuItemInputClick(Sender: TObject);
//initial setup
begin
SetLength(collection,1);
SetLength(information,8,1);
x := 0;
y := 0;
end;
Sorry I missed that out.
Paul
--
---This message has been sent using Thunderbird on kubuntu---
More information about the Lazarus
mailing list