How to: Create a New Variable - Visual Basic (original) (raw)

Dim newCustomer  
Public Static newCustomer  

You do not need the Dim keyword if you use other keywords in the declaration.

Public Static newCustomer  
Public Static newCustomer As Customer  

If you do not specify the data type, it uses the default: Object.

Public Static newCustomer As New Customer