[fpc-pascal] Initializing Arrays?

Joseph Montanez jmontanez at gorilla3d.com
Thu Dec 25 08:06:29 CET 2008

I've already read that its not built into pascal but how do I get around
this? If I have:

contacts : array [1 .. 256] of JSMContact;

the only way to initialize it is?

    with contacts[1] do
        Name := '';
        PhoneNo := '';

Also if I am passing a var to a procedure how would use a pointer as

{ Wont compile :( }

procedure JSMContactAdd(contact : ^JSMContact);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20081224/764fa6b2/attachment.html>

More information about the fpc-pascal mailing list