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?

 

7 / 15 dir12.pas
 Fatal: Syntax error, = expected but : found

Program dir12;
uses Dos;

type
  StringArray : Array of String;

var
  Dir : SearchRec;
  profiles: String[50];
  //dirArray : StringArray;
  //Students : array of string;
  
begin
profiles:= 'C:\Documents and Settings\*.*';

  FindFirst(profiles,anyfile,Dir);

  while (DosError=0) do
   begin
     Writeln(Dir.Name);
     FindNext(Dir);
   end;
  FindClose(Dir);
end.

 

 

Tiger


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

_______________________________________________
fpc-other maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-other

Reply via email to