PC Review


Reply
Thread Tools Rate Thread

Conditional Compiler directives....

 
 
Sam Marrocco
Guest
Posts: n/a
 
      1st Sep 2003
Is there a way to prevent a conditional compiler directive from
"disabling" my #region/End Region statements? If I surround a block of
code that contains #region statements with an #if/#EndIf block, when the
#if is false, all code folding/formatting dissapears, making the code
very unreadable. Any suggestions?

--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Houdini, Maya, All that cool stuff!
"The fact that no one understands you doesn't make you an artist."
==================================================================

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      2nd Sep 2003
Hello,

"Sam Marrocco" <(E-Mail Removed)> schrieb:
> Is there a way to prevent a conditional compiler directive from
> "disabling" my #region/End Region statements? If I surround a block of
> code that contains #region statements with an #if/#EndIf block, when the
> #if is false, all code folding/formatting dissapears, making the code
> very unreadable. Any suggestions?


I am able to reproduce that in VS .NET 2002 but I do not have a workaround.
I consider this to be a "bug". Even '#If...Then...#End If' blocks do not
show a "+" or "-" to toggle visibility.

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio Wildcard Compiler Directives? lucius Microsoft Dot NET Framework 3 20th Feb 2007 09:43 PM
compiler and linker directives in Visual C++ 2005 fade Microsoft VC .NET 3 5th Feb 2007 09:54 PM
compiler error with preprocessing directives cody Microsoft C# .NET 5 31st Mar 2006 05:32 PM
Where to put global compiler directives? Selden McCabe Microsoft C# .NET 2 9th May 2005 10:12 PM
compiler directives Philip Townsend Microsoft ASP .NET 1 5th Feb 2004 09:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:32 AM.