Use an enum
But you shouldn't hardcode a path.
>I want to put define table references in a .h file and be able to reference them in my program, but it does not seem to work.
>
>example
>
>#DEFINE _TABLENAME_S \\SERVERNAME\VOLUME\FOLDER\maintable.dbf alias maintable shared
>
>when I try to
>use _TABLENAME_S in the program it will not recognize the variable _TABLENAME_S
>
>the program does have the #include hfilename.h in it.
>
>any ideas?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer