Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'As' Clause Error...

Status
Not open for further replies.

lidds

Programmer
Jun 9, 2005
72
GB
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:

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
 
Code:
Private Const AP_PROP_OUTDIR As Long = 1

just give it a data type.


"...and did we give up when the Germans bombed Pearl Harbor? NO!"
"Don't stop him. He's roll'n.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top