473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can't see namespace

I am using vb.net VS 2003 and can't seem to see my namespace.

I have 2 files (form1.vb and DBTypes.vb).

My DBTypes.vb is:
************************************************
' Create to new variable types to handle nulls and track changes
' to standard variable types. This is for use with database variables.
' This will tell us if a vaiable has changed, give us the original and
current value,
' and tell us whether the current value and original value is/was null or
not.

imports System
imports System.IO

Namespace FtsData
MustInherit Class DataType
Private _first As Object
Private _data As Object
Private _changed As Boolean = False 'value changed from set
Private nullFirst As Boolean = False
Private nullData As Boolean = False 'current data null

Public Sub New()
End Sub

Public Sub New(initial As Object)
first = initial
data = initial
End Sub

Public Function IsNull() As Boolean
return nullData
End Function

Public Function IsFirstNull() As Boolean
return nullFirst
End Function

Public Sub SetNull()
nullData = true
_data = ""
End Sub

Public Sub SetFirstNull()
nullFirst = true
_first = ""
End Sub

' Properties

Public Property First As Object
Get
return _first
End Get
Set
_first = value
End Set
End Property

Public Property Data As Object
Get
return _data
End Get
Set
_data = value
_changed = true
nullData = false
End Set
End Property

Public Property Changed as Boolean
Get
return _changed
End Get
Set
_changed = value
End Set
End Property
End Class

Class StringType : Inherits DataType
Private _first As String = "" 'original data
Private _data As String = "" 'current data
End Class

End Namespace
**************************************

My vb file is:
****************************
Imports FtsData

Public Class Form1
Inherits System.Windows.Forms.Form

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim temp As StringType
End Sub
End Class
**************************

I am getting 2 errors:

Namespace or type 'FtsData' for the Imports 'FtsData' cannot be found.

and

Type 'StringType' is not defined.

But I have the Imports statement and StringType is in the DBTypes.vb file.

What am I missing?

Thanks,

Tom

Nov 12 '07 #1
2 2792
"tshad" <tf*@dslextreme.comschrieb
I am using vb.net VS 2003 and can't seem to see my namespace.

I have 2 files (form1.vb and DBTypes.vb).

My DBTypes.vb is:
************************************************
' Create to new variable types to handle nulls and track changes '
to standard variable types. This is for use with database
variables. ' This will tell us if a vaiable has changed, give us the
original and current value,
' and tell us whether the current value and original value is/was
null or not.

imports System
imports System.IO

Namespace FtsData

My vb file is:
****************************
Imports FtsData
I am getting 2 errors:

Namespace or type 'FtsData' for the Imports 'FtsData' cannot be
found.

and

Type 'StringType' is not defined.

But I have the Imports statement and StringType is in the DBTypes.vb
file.

What am I missing?
Use the full qualified name

Imports Rootnamespace.FtsData

where Rootnamespace is the projects's root namespace in the project
properties.
Armin

Nov 12 '07 #2

"Armin Zingler" <az*******@freenet.dewrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
"tshad" <tf*@dslextreme.comschrieb
>I am using vb.net VS 2003 and can't seem to see my namespace.

I have 2 files (form1.vb and DBTypes.vb).

My DBTypes.vb is:
*********************************************** *
' Create to new variable types to handle nulls and track changes '
to standard variable types. This is for use with database
variables. ' This will tell us if a vaiable has changed, give us the
original and current value,
' and tell us whether the current value and original value is/was
null or not.

imports System
imports System.IO

Namespace FtsData


>My vb file is:
****************************
Imports FtsData

>I am getting 2 errors:

Namespace or type 'FtsData' for the Imports 'FtsData' cannot be
found.

and

Type 'StringType' is not defined.

But I have the Imports statement and StringType is in the DBTypes.vb
file.

What am I missing?

Use the full qualified name

Imports Rootnamespace.FtsData

where Rootnamespace is the projects's root namespace in the project
properties.
That was it.

It was:

DBTypesVB.FtsData.

Not sure why this is.

In my other project where I am using this Dll and calling it from
DreamWeaver in my Asp.Net Pages, I only put in "Imports FtsData". Why do I
need to put the projects Namespace in it here?

Thanks,

Tom
>

Armin

Nov 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Anonymous | last post by:
How do I reference a namespace variable in a multi-file project? Do I use the keyword 'extern'? If so, does the word 'extern' modify the namespace or the individual variables within the...
25
by: kj | last post by:
Consider the following XML document: <?xml version='1.0' encoding='UTF-8'?> <bar:foo xmlns:bar='someuri'> <baz/> </bar:foo> What namespace does baz belong to? What is this namespace bound...
5
by: cppaddict | last post by:
It is typical to put the line: using namespace std; at the top of a file which makes use of std library objects. To take a simple example: #include <iostream> using namespace std;
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
5
by: Mike Oliszewski | last post by:
Given the following c# code: namespace Company2 { public class SomeFunctions { public void FunctionA() { // Do Something. }
14
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
2
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
9
by: Ivan Mascovich | last post by:
Previous posts (and compilers) confirm that class X { friend void Y() ; } ; does not match namespace
5
by: lukasmazur | last post by:
Hi I have a problem with using listBox1. I have a two forms form1 and form2. In form1 are controls listBox1, textBox1 and button witch creating object of class Form2. In class Form2 I create a...
1
by: Autostrad | last post by:
Below; I have 2 classes (forms), Namely, "PrintOneEmployee" and "DeleteOne". In class "PrintOneEmployee"; I want to declare a variable with name of "fileName" to contain the name of the file...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.