SRL Archive - Reflection Help

{$IFDEF UseReflection} Not Working?


Rich

2011-03-31 12:44:34

I've declared Reflection
program New;
{$include SRL\SRL\misc\SMART.SCAR}
{$include SRL\SRL.scar}
{$include reflection\reflection.simba}
But wherever I use {$IFDEF UseReflection}, what is called inside doesn't happen, and the colour {$ELSE} happens. For example, in my progress report
  {$IFDEF UseReflection}
WriteLn(PadR('> Reflection: True', 52) + '<');
{$ELSE}
WriteLn(PadR('> Reflection: False', 52) + '<');
{$ENDIF}
False is outputted.

Any ideas?
Thanks,
Richard.

Dgby714

2011-03-31 13:08:45

use {$IFDEF REFLECTION}

Rich

2011-03-31 14:37:09

From: Dgby714
use {$IFDEF REFLECTION}
OK cheers. I read UseReflection in another script, so just assumed that was correct.

Bad Boy JH

2011-04-06 08:00:38

I used UseReflection on my competition script, I did this though:

{$def UseReflection} //line 1

//INSTRUCTIONS

{$ifdef UseReflection}
{$i Reflection/reflection.simba} //or whatever the path is
{$endif}