This has to be a simple question to answer.

Thread Solved

Join Date: Dec 2005
Posts: 109
Reputation: complete is an unknown quantity at this point 
Solved Threads: 0
complete's Avatar
complete complete is offline Offline
Junior Poster

This has to be a simple question to answer.

 
0
  #1
Mar 7th, 2006
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:

Compile error:
Sub or Function not defined.
What additional things do I need to do to define the function?
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 109
Reputation: complete is an unknown quantity at this point 
Solved Threads: 0
complete's Avatar
complete complete is offline Offline
Junior Poster

Re: This has to be a simple question to answer.

 
0
  #2
Mar 7th, 2006
I changed the function type from Private to Public and it works.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC