i've set option strict in web.config, but It seems that doesn't affect separate class file vb/cs.
How can i enable it?
a stupid exaple to explain what i want to say
if i write this in a file.aspx
dim a,b as integer
dim ab as string =a+b
i get an intellisense error, if i write the same in a separate class file i get No error.
There is a linkhttp://support.microsoft.com/kb/911793/en-us, but I do not find it helpful.
I think it is not possible to accomplish this.
Option strict is a vb Compilation Options.And the configuration file "web.config" is not processed when the vb class file is being compiled.So the "strict option" in web.config doesn't affect separate class file. Why don't you use Option Strict On in the vb code instead?
There is a linkhttp://support.microsoft.com/kb/911793/en-us, but I do not find it helpful.
I think it is not possible to accomplish this."Option strict" is a Compilation Options in vb. But the configuration file "web.config" is not processed when the vb class file is being compiled. Web.config is actully processed when the web application is loaded. So the "strict option" in web.config does not affect separate class vb file.
Why don't you use Option Strict On in the vb code.
0 comments:
Post a Comment