Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2006, 12:27 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default This has to be a simple question to answer.

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:
quote:Compile error:
Sub or Function not defined.
What additional things do I need to do to define the function?

 
Old March 7th, 2006, 01:04 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default

I changed the function type from Private to Public and it works.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Question and Answer Moduel ROCXY All Other Wrox Books 2 November 29th, 2008 01:14 AM
Book does not seem to answer my question Alfred BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 0 October 31st, 2008 11:47 AM
Simple - Quick Answer hopefully! IainAL VB How-To 4 April 18th, 2007 07:53 AM
Answer this code question jaimini VB.NET 2002/2003 Basics 3 November 27th, 2004 07:10 AM
I'm sure there's a simple answer to this! Jams30 PHP Databases 0 October 27th, 2003 01:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.