Is there a simple way to determine if the program is running on a Device or Desktop - one which will allow the compiler to use/omit code?
For example, I have
img1clk.New1(img1obj.value,"MouseClick")
in my program but this has to be
img1clk.New1(img1obj.value,"MouseDown")
on the Device. I don't want to have to edit this (and remember what to edit) every time I transfer the program to the device or back again.
In Delphi they have
{$IFDEF VER130}
do this
{$ELSE}
do that
{$ENDIF}
is there something similar in Basic4PPC?
For example, I have
img1clk.New1(img1obj.value,"MouseClick")
in my program but this has to be
img1clk.New1(img1obj.value,"MouseDown")
on the Device. I don't want to have to edit this (and remember what to edit) every time I transfer the program to the device or back again.
In Delphi they have
{$IFDEF VER130}
do this
{$ELSE}
do that
{$ENDIF}
is there something similar in Basic4PPC?