|
-
Oct 7th, 2000, 07:07 AM
#1
Thread Starter
Lively Member
Hi,
i got a really newbie kind of question here.
I tried to declare API functions as public but i am not allowed to. May i know why?
How can i call the API functions in other forms without declaring the same thing again?
-
Oct 7th, 2000, 07:13 AM
#2
Hyperactive Member
Public functions are used in the Module level. If you declare a function on a form, use Private.
-
Oct 7th, 2000, 10:35 AM
#3
If you are using VB3.0, than you Declare them without Private or Public. So a lot of functions the work in higher VB version's will not work.
Private = Indicates that the Function procedure is accessible only to other procedures in the script where it is declared or if the function is a member of a class, and that the Function procedure is accessible only to other procedures in that class.
Public = Indicates that the Function procedure is accessible to all other procedures in all scripts.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|