1. Home
  2. Computing & Technology
  3. Visual Basic

Chapter 12 - Text Files and String Processing

By , About.com Guide

7 of 10

A Syntax Error Results Without Enough Qualification

Reference Error

Reference Error

If you don't have enough qualification, the result is a syntax error ("Type 'OleDbCommand' is not defined") because the Imports namespace qualification System.Data doesn't provide enough information to find the object OleDbCommand.

~~~~~~~~~~~~~~~~~~~~~~~~~
Imports System.Data
Public Class Form1
  Inherits System.Windows.Forms.Form
  Private Sub Form1_Load( ...
    Dim Test As OleDbCommand
  End Sub
End Class
~~~~~~~~~~~~~~~~~~~~~~~~~

Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Exploring Text Files and String Processing

©2009 About.com, a part of The New York Times Company.

All rights reserved.