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?
Printable View
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?
Public functions are used in the Module level. If you declare a function on a form, use Private.
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.