|
-
Apr 28th, 2003, 05:29 PM
#1
Thread Starter
Need-a-life Member
Conditional Coding
I think there's a way to perfom something if you're debugging or not. I thought it was sth. like:
VB Code:
#If Debug Then
'Code here
#End If
However, this doesn't work. What's the way to do this?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Apr 28th, 2003, 05:31 PM
#2
What do you mean "it doesn't work"? Debug is an IDE object, so that may be your problem.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 28th, 2003, 05:38 PM
#3
Thread Starter
Need-a-life Member
Thanks, I know that. What's the proper way to do this?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Apr 28th, 2003, 05:41 PM
#4
VB Code:
#If DEBUGGING Then
'Code here
#End If
Should be fine. Then define a conditional const called DEBUGGING in either the project properties, or at the top of the code module.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 28th, 2003, 06:00 PM
#5
Thread Starter
Need-a-life Member
Ok, but doesn't that mean the I should turn the Const to False just before compiling?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Apr 28th, 2003, 06:01 PM
#6
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 28th, 2003, 06:04 PM
#7
Thread Starter
Need-a-life Member
Thought so! I was looking for an automatic way. Thanks!
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Apr 28th, 2003, 08:35 PM
#8
Another way to accomplish the same thing is to go to Project|Properties|Make and put something like DEBUGGING = 1 in the Conditional Compilation Arguments: box. To turn off any conditional statements simply change the argument to DEBUGGING = 0.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|