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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user a function

Status
Not open for further replies.

billyng

Programmer
Dec 7, 2004
25
US
Hi folks,

I want to create a util program that can be accessed anywhere in the program. Is there a way to access the program's any functions without calling DO <program name> first?

Thanks!

Billy Ng

 
one simple solution is to store your commonly used functions/procedures in one procedure file (usually a .PRG file that you may call MyProcs.prg) and issue SET PROCEDURE TO MyProcs.prg somewhere in the very first few lines of any of your apps. you may then call any function/procedure within you program that is contained in you MyProcs.prg. if you want, you may refer to the SET PROCEDURE command in vfp's help index.

hope this helps. peace! [peace]

kilroy [trooper]
philippines

"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get one million miles to the gallon, and explode once a year, killing everyone inside."
 
yeah, I did it in the main program and it works. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top