Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declareing Functions

Status
Not open for further replies.

codenovice

IS-IT--Management
Dec 4, 2001
11
US
I have two functions one to calculate remainder and other arc tangent. I DO KNOW the functions. All I need to know is to know the exact location to DECLARE them. i.e

Should I declare in General Declerations or at the end of a procedure like command_click()

It is very urgent and your advice is greatly appreciated.

Thanks
 
You can place your function anywhere in your code. If you want to make it so that all forms and modules can use them then I would suggest creating a module for the functions and declaring them in this module. Just make sure that you call them public as in

Public Function Calculate Remainder(parameters) as long
.
.
.
.
.
.
end function

however they can be put anywhere in your code. Mark

The key to immortality is to make a big impression in this life!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top