R
R
Romanson2016-11-09 14:46:50
Delphi
Romanson, 2016-11-09 14:46:50

How to comment code in Delphi so that when you run the application on windows, the code from android is not executed?

Hello, how to comment code in Delphi xe so that when you run an application on windows, the code from android is not executed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2016-11-09
@Mercury13

{$IFDEF MSWINDOWS}
// тут код, специфичный для Windows
{$ENDIF}

And, similarly, {$IFDEF ANDROID}
Often used {$IF defined(MSWINDOWS)} - you can write {$ELSEIF defined(ANDROID)}.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question