T
tshad
I have a .dll that has MyFunctions as a Namespace and Class of FWData.
If I have my using statement as:
using MyFunctions.FWData
Why do I have to set a new variable as:
Dim fw = New MyFunctions.FWData(10)
Why can't I do:
Dim fw = new FWData(10)
This gives me an error:
C:\VSProjects\TestFWData\Form1.vb(73): Type 'FWData' is not defined.
Why is that? If I have it defined in my using statement - why do I need the
namespace?
The whole code is:
*******************************************************
Imports MyFunctions.FWData
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim fw = New MyFunctions.FWData(10)
Dim j As Integer = fw.ErrorCode
End Sub
End Class
******************************************************
Thanks,
Tom
If I have my using statement as:
using MyFunctions.FWData
Why do I have to set a new variable as:
Dim fw = New MyFunctions.FWData(10)
Why can't I do:
Dim fw = new FWData(10)
This gives me an error:
C:\VSProjects\TestFWData\Form1.vb(73): Type 'FWData' is not defined.
Why is that? If I have it defined in my using statement - why do I need the
namespace?
The whole code is:
*******************************************************
Imports MyFunctions.FWData
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim fw = New MyFunctions.FWData(10)
Dim j As Integer = fw.ErrorCode
End Sub
End Class
******************************************************
Thanks,
Tom