Declaration's

Where so I put declarations from vb? as in www.vbcode.com they have declrationbs where i puted tem?
kinger2000Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mcriderConnect With a Mentor Commented:
If you want to make the API available to all other modules and form subroutines, define them in the General Declaration Section of a module. Define them as GLOBAL like the "OpenIcon" API shown below:

     Global Declare Function OpenIcon Lib "user32" (ByVal hwnd As Long) As Long

If you want the function to be  available ONLY to the the module or form they are defined in, define them as PRIVATE like the "OpenIcon" API shown below:

     Private Declare Function OpenIcon Lib "user32" (ByVal hwnd As Long) As Long


Cheers!
0
 
vettrangerCommented:
If you're talking about API or DLL declarations, you should put them in the General Declaractions section of a module.
0
 
vettrangerCommented:
Bear in mind that many declarations are not valid in forms, only in modules.
0
 
vettrangerCommented:
Also please bear in mind that most experts and questioners here consider it improper to answer with substantially the same information given by someone else in a comment, while waiting for clarification from the questioner.
0
All Courses

From novice to tech pro — start learning today.