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

Kinda Like "#INCLUDE" But... 1

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
I have two applications that access the same database from different points of view (telephone reps vs. warehouse folks). Many of the desired functions are exactly the same for both; the code is identical. Maintaining them would be a lot easier if I could keep the Common routines in one file and just "Include" it into both main routines.

"#INCLUDE"'ed files cannot contain FoxPro commands. (Actually, they can be there but are ignored.)

How do I do this?

Shanachie
 
look at foxpro function DO, you could create a common app which contains all shared programs, and the in both applications have set proceduret to "appname", or you can call them by DO "programname" in "appname", that will give you common shared files....
 
You can have all the small small procedures under one '.prg' file (say MYPRGFILE) and set the procedure to that file by SET PROCEDURE TO MYPRGFILE. Hope this helps you.
 
Thanks, Ramani, that's what I was looking for.

Shanachie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top