Monday, January 31, 2005

A Use for #If... Then

I've read about #If... Then time and time again. BUt, like so many things, I haven't really hada n excuse to use it.

I know it's only a very small constructional fish in a huge software pond. More of an ocean really. But still, I never had an excuse to use it.

Until yesterday. With the cunning use of '#If DEBUG Then' I've managed to make debugging layout things in my little dial control a doddle by adding various lines and stuff when it's compiled in Debug mode, but leaving them out in the Release version.

Well, I was impressed. It even helped me sort out a wierd layout thing that I had going on. Now I just have to cure the weird rounding error that's happening instead...

Just wanted to share.

No comments: