Groups | Blog | Home
all groups > vb.net upgrade > march 2006 >

vb.net upgrade : This has to be a simple question to answer.


Ken Halter
3/7/2006 9:23:22 AM
[quoted text, click to view]

If you're getting that error even though you know for a fact that the
function exists in your app, it sounds like you have a scope problem.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Athono via DotNetMonster.com
3/7/2006 4:29:53 PM
This has to be a simple question to answer. And I know how to do this in C++
but I don't know how it is done in Visual Basic. So I am not completely lost.
It is just that Visual Basic is pretty new to me.

I have written some functions to do a particular task in a Visual Basic
project and I have put them into a seperate module and save it as a file.

And now I have included the call to that function in another part of code in
a pre-existing file.

When I clidk on File->Make to build an execuatable, the compiler stops on the
line where I have typed the function call and says:

[quote]Compile error:
Sub or Function not defined.[/quote]
What additional things do I need to do to define the function?

--
AddThis Social Bookmark Button