[fpc-other] new to pascal

tigerbalm tigerbalm at spray.se
Mon Nov 15 06:41:42 CET 2004


Thanks for the ansver. but when I do like you says this error message is shown. 

5 / 23 dir12.pas
 Fatal: Syntax error, [ expected but OF found

About arrays the documentation says : 

As of version 1.1, Free Pascal also knows dynamic arrays: In that case, the array range is omitted, as in the following example:
 Type  
  TByteArray : Array of Byte;  

any moore ideas?

	


> Från: Francois Schoubben <fsc at info.fundp.ac.be>
> Till: "Other FPC related discussions." <fpc-other at lists.freepascal.org>
> Rubrik: Re: [fpc-other] new to pascal
> Datum: Sun, 14 Nov 2004 18:41:49 +0100

> tigerbalm wrote:
> > Hallo Everybody!
> > 
> >  
> > 
> > I am new to pascal since a few days but not to programming. This code
> 
> > gives an errormessage when I try to compile it. Can anyone explain
> why?
> > 
> 
> For type declaration, you need a =, not a :...
> 
> So, the 3rd and 4th line must be
> 
> Type
>    StringArray = Array of String;
> 
> -- 
> F.
> 
> _______________________________________________
> fpc-other maillist  -  fpc-other at lists.freepascal.org
> <A HREF="http://lists.freepascal.org/mailman/listinfo/fpc-other" TARGET="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-other</A>null

Otur i kärlek - www.spray.se/spel Tur i kärlek - www.spraydate.com



More information about the fpc-other mailing list