Is it possible to assign a value to a class variable from inside a #IF DEBUG conditional? Basically what I want to do is conditionally execute some code from inside my main form load if I am running in DEBUG mode. I thought I would do something like:
Public Class Form1
public DEB as Integer
#if DEBUG then
DEB = 1
#else
DEB = 0
#endi if
Private Sub Form1_Load(....)
if DEB=1 Then
<do something>
else
<do something else>
end if
....
However, it seems like you cannot assign a value to a variable. I'm obviously not understanding the scoping correctly. I cant seem to put the #if DEBUG inside the Load. Can somebody explain how to do this.