SRL Archive - General

SCAR Console Applications


Jason2gs

2007-05-05 04:17:13

Is it possible to make a SCAR script operate as a console application? I typed in this:


program New;
{$APPTYPE CONSOLE}
begin
Writeln('Hello!');
end.

But it didn't seem to work. Is this intentional, or am I messing something up?

Edit: "$APPTYPE CONSOLE" doesn't actually come up green in SCAR. Just copy and paste that into SCAR.

Freddy1990

2007-05-05 06:04:31

As I said before, you can only use Define, IfDef, IfNDef, Else and End as compiler directives.

Jason2gs

2007-05-05 06:30:12

Ah, thanks.

Didn't catch where you said that at. Sorry.

Where did you say it at?

Freddy1990

2007-05-05 08:05:31

Don't remember, but then you know now :)

Jason2gs

2007-05-05 10:20:19

True :)