[2005] 'As' Clause Error...
I have purchased a 3rd party control, and in the manual it has told me to use the following code:
Code:
Const AP_PROP_OUTDIR = 1
However this code is giving a warning in Visual Studio of:
Quote:
Variable declaration without 'As' clause; type of Object assumed
I assume that this is VB code and not VB.Net code, however I am uncertain how to resolve this error.
Sorry for something that is probably a simple fix.
Thanks in advance
Simon
Re: [2005] 'As' Clause Error...
Depending on what the constant "should" be declared as. You could try:
Code:
Const AS_PROP_OUTDIR As Integer = 1
Re: [2005] 'As' Clause Error...
NetNinja is right that would most likely not cause you any problems.
As far as the message is concerned you probably have the "Implicit type; object assumed" flag set to warning on your project compiler properties. That gives you a warning in cases like this. You can set it to "none" if you don't want to see when the compiler is guessing the object type.