Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 4226

How do you exclude a piece of code for debug?

$
0
0

To search about a bug (my previous thread), I needed toe xclude from execution a piece of code at Run time (not in the application).

So, because I develop on macOS, I used

#If TargetWindows
…/…
#EndIf

How do you do that ?

PS: I cannot use Cut, then Paste because I am always in low memory condition and the Clipboard Operations are not reliable.
Moving the code into TextEdit document also have its drawback.
For me, the code MUST STAY WHERE IT IS.

Here’s how it looks:

The #If block is collapsed, and that is good for me.

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4226

Trending Articles