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

#include file

Status
Not open for further replies.

generlam

Programmer
Jun 13, 2001
75
US
I am including constants.h file with my form for excel constants, and yet I still get errors for things like :
#define xlTop 0xffffefc0
Can someone help?
 
in design mode, open the form. from the menu, select FORM -> Include. this is were you put the include file so the form will reconize the defines.

in prg's you can use the mormal include. Attitude is Everything
 
I am doing that. Defines with numeric values are recognized, but those with hexadecimal values cause errors. I'm assuming that this include file may be a VBA file.

Does anyone know the VFP equivalent of these constants?
 
generlam

Are you using this in an Excel Automation?
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
post me the defines, I will convert them. Attitude is Everything
 
Thanks Danceman.
Here they are:

#define xlNone 0xffffefd2
#define xlTop 0xffffefc0
#define xlAutomatic 0xffffeff7


Thanks
 
#define xlNone -4142
#define xlTop -4160
#define xlAutomatic -4105


I see these are excel constants. you coauld have gotten them by following the advice in faq184-2215.

hope this helps
Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top