Variable declaration without an 'As' clause; type of Object assumed 
This page is specific to:.NET Framework Version:2.03.03.5
Visual Basic Reference: Error Messages 
Variable declaration without an 'As' clause; type of Object assumed 

A variable declaration does not specify an As clause.

An As clause identifies a data type to be associated with a programming element. In a Dim Statement (Visual Basic), it specifies the data type of the variable or variables. If you do not include an As clause in the Dim statement, the variable's data type defaults to Object.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC42020

To correct this error

  • Include an As clause in the Dim statement to specify the variable's data type.

See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View