SKy Scripter
2007-02-20 18:04:53
// if i type this "{$ somthing }" in SCAR it turns it invisable why?????
{$ bfdbfjksdbfjksdbfjksfjkbsdjkfbsdk}
2007-02-20 18:04:53
// if i type this "{$ somthing }" in SCAR it turns it invisable why?????
{$ bfdbfjksdbfjksdbfjksfjkbsdjkfbsdk}
2007-02-20 18:33:48
2007-02-22 10:04:21
2007-02-25 15:41:40
program New;
begin
"{$ClearDebug;")
end.
2007-02-25 15:52:34
program CompilerDirectivesTest;
{$Define Hello}
begin
{$IfDef Hello}
WriteLn('Hello World');
{$Else}
WriteLn('Hello Mars');
{$EndIf}
end.Like this it'll write hello world, comment out or remove the {$Define Hello} and it'll write hello marsprogram CompilerDirectivesTest;
{$Define Hello}
begin
{$IfNDef Hello}
WriteLn('Hello World');
{$Else}
WriteLn('Hello Mars');
{$EndIf}
end.
2007-02-25 15:59:38
2007-02-25 16:10:48
2007-02-26 14:36:06
2007-02-26 14:53:20
2007-02-26 16:23:25
From: bullzeye95
It has no use :-/
2007-02-26 16:59:35
The uses are pretty much unlimited, a simple example…
If you for example put something in an IfDef clause while it's not defined it does not only skip that stuff, the stuff doesn't even have to be included, can be useful…
Another example…
You make a script that is supported by several includes, you can just switch to using the other include by putting a compiler directive around the stuff to determine when it should be used
There truely are loads of uses
2007-02-26 17:10:57
2007-02-26 18:10:44
2007-02-26 19:07:01
From: Freddy1990
That's where you're wrong
The uses are pretty much unlimited, a simple example…
If you for example put something in an IfDef clause while it's not defined it does not only skip that stuff, the stuff doesn't even have to be included, can be useful…
Another example…
You make a script that is supported by several includes, you can just switch to using the other include by putting a compiler directive around the stuff to determine when it should be used
There truely are loads of uses
2007-02-26 19:08:39
2007-02-26 19:13:11
2007-02-27 06:45:50
From: bullzeye95
You say if something is not included you could switch to using another one (am I right?). Well can you include something in the middle of a script? Is there anyway to do that?