The #If statements are not compiled into the program unless the argument is True. Look in MyProject|Properties|Make and in Conditional Compilation Arguments you'll probably find myVariable.