Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   "Timer Loop" Program (http://www.chiefdelphi.com/forums/showthread.php?t=17886)

Greg Ross 25-02-2003 11:30

Quote:

Originally posted by randomperson
Here's an idea for everyone that I really like using for our code: use the conditional compilation statements (only availible in the BETA compiler for PBasic 2.5).. so:

#define showdebug

...

Does this work? I thought I had tried it (with no success.) And Parallax's web site still says:
Quote:

A newer version is expected to be released in the next few weeks which will include the following additional features:

Color syntax highlighting which makes editing and debugging PBASIC programs much easier
Integrated online help file with new PBASIC command examples
Conditional compilation directives

randomperson 25-02-2003 13:52

Actually, yes. I know this for two reasons:

a) it works in my code...
b) the alpha version FIRST released for useage by FIRST teams mentioned the compilation directives in the release notes for that version.. and apparently they have it in the beta version as well except they didn't document it..

Some things to remember... all the statements have to have a # before them otherwise they are treated as regular code. So:

#if varible then

... code here

#endif

That code doesn't work at all... you need to do a

#if varible #then

... code here

#endif

It seems to work when I use it.. but maybe its just me


All times are GMT -5. The time now is 00:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi