.net - What does "A type cannot be be used as a standalone statement" error mean? -


this delphi prism .net. running error(s), "a type cannot be used standalone statement", , don't understand or know why. compiler pointing @ lines right below var keywords.

method scriptdlgpas.executestartup; var   sname:string;     <------ error raised here   slist:arraylist;  <------ error raised here begin   sname := basedir+'system\startup.scr';   if file.exists(sname)   begin     slist := new arraylist;     executescript(slist);   end; end; 

the google search isn't helping either.

thanks in advance.

there's above doesn't closed properly.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -