[Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

patspiper patspiper at yahoo.com
Sat May 22 21:28:19 CEST 2010


On 05/22/2010 02:33 PM, Vannus wrote:
>
>     uses
>      Forms,
>      Unit1 in 'set_max.pas' {Form1},
>      Unit2 in 'main_island.pas' {Form2}; <-- semi colon
>
>
> ???
>
> wheres 'program' ?
>
> where 'begin' & 'end' and the coide in between ?
>
> at the minimum there needs to be:-
>
> program hello;
> begin
>     // do something ie:-  writeln('Hello');
> end.
>
> which is usually in proect1.lpr or project1.pas and rarely (if ever) 
> in unit1.pas or unit2.pas
>
> HTH,
> - V
>
HTH who? Me or the OP ;)

The minimum that you have mentioned is already included in the OP's 
program file, but his uses clause is improperly terminated.

HTH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100522/7d59ab0f/attachment-0004.html>


More information about the Lazarus mailing list