Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
This has to be a simple question to answer.

 
Post new topic   Reply to topic    dna88 Forum Index -> Programming in Java, C, C#, VB, .NET Discussion Forum
Author Message
Bill_thompson
Just In
Just In


Joined: 11 Jan 2006
Posts: 6

Post Post subject: This has to be a simple question to answer. Reply with quote

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.

What additional things do I need to do to define the function?
Tue Mar 07, 06 9:25 am
Back to top
Bill_thompson View user's profile Send private message
Bill_thompson
Just In
Just In


Joined: 11 Jan 2006
Posts: 6

Post Post subject: Reply with quote

I changed the function type from Private to Public and it works.
Tue Mar 07, 06 10:11 am
Back to top
Bill_thompson View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Programming in Java, C, C#, VB, .NET Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group