How to comment code in Delphi so that when you run the application on windows code from Android is not performed?

Hi, how to comment code in Delphi xe so that when the application is run on windows Android from code not executed?
July 2nd 19 at 18:16
1 answer
July 2nd 19 at 18:18
{$IFDEF MSWINDOWS}
// here is code that is specific to Windows
{$ENDIF}


And, similarly, {$IFDEF ANDROID}

Often use {$IF defined(MSWINDOWS)} — you can write {$ELSEIF defined(ANDROID)}.
Thank you very much) - delpha.Botsford43 commented on July 2nd 19 at 18:21

Find more questions by tags Delphi