The syntax is :
Debug.Assert Method (Boolean, String)
Checks for a condition and displays a message if the condition is false.
Example :
Public Shared Sub MyMethod(type As Type, baseType As Type)
Debug.Assert(Not (type Is Nothing), "Type parameter is null")
End Sub
What's the method/condition you're testing ?
http://msdn.microsoft.com/library/de...serttopic1.asp
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
"Mr Newbie" <he**@now.com> wrote in message news:Or**************@TK2MSFTNGP15.phx.gbl...
Debug.Assert( False, "Why wont I display ??")
I am trying to use this in my code but it wont display. The app is running on my local
machine and the above code under a button click event.
What am I missing ?
Cheers mr N . . .