LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Convenient way to ignore Debug.Assert ?

You may want to add a public variable that you can toggle.

Public DevelopmentMode as Boolean

Then somewhere
DevelopmentMode = True

Then you could use
if developmentMode = true then
debug.assert ...
End if

Who knows if it's worth the effort for this project--but, heck, it may be worth
it when you get that first bug, er, enhancement request next week!



Sing wrote:

Dear Excel Gurus,

I put in several Debug.Assert in my code to catch bugs more easily. As I am
going to deploy the code soon, is there any convenient way to ignore the
Debug statements for the deployment version?

Thanks for your help.


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DSUM Not Very Convenient archsmooth Excel Worksheet Functions 2 September 17th 07 07:20 PM
extract data from pivot via vba (Getpivot is not convenient) Sandip[_2_] Excel Programming 1 June 10th 06 04:33 PM
Is there a convenient way to represent latitude/longitude iman1000 Excel Discussion (Misc queries) 2 July 18th 05 10:57 PM
Looking for a convenient source of VBA expressions KG Excel Programming 1 February 12th 05 07:55 PM
* How do we debug this? ... Kris Excel Programming 2 October 29th 04 02:17 AM


All times are GMT +1. The time now is 03:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"