Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of #DEFINE in stored procedures and framework
Message
 
To
11/12/1998 19:07:19
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00166817
Message ID:
00167860
Views:
18
Oscar,

>I need to #DEFINE a couple of constants which are to be used throughout the application and procedures. I’ve realized that when defining this constants into the Appincl.h file, the database’s stored procedures are not aware of such constant definitions.
>
>Of course I do not want to populate the framework include files with application specific constants and I’m guessing that #INCLUDE(ing) Framincl.h into the stored procedures might not be a safe idea because it appears to be a cyclic situation (stored procedures #INCLUDE Framewrk.h).

I recommend placing your application-specific constants in Appincl.h, then adding the following line to your database's stored procedures to include Appincl.h:

#INCLUDE '..\Include\Appincl.h'

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform