General information
Category:
Coding, syntax & commands
>Yes, it offers the same design. But I was unable to make it work. I actually tried to use a constant from foxpro.h (AFIELDS_WIDTH) and the program complained, that there is no such variable. I had to put #include foxpro.h in the beginning of the program in order to make it work. I forgot, how can we have "GLOBAL" constants?
I recommend *not* using foxpro.h as an include file. It's huge and has very poor and inconsistent naming conventions. It thus becomes very easy to have a #DEFINE wreak havoc with programs where you might have variables or fields with the same name. Rather, when you find specific constants that you need, migrate these to your own (short, carefully-constructed) include file.
The only downside is you may have to verify the constants haven't changed when a 64-bit FoxPro comes out (as if...), but I doubt there's much potential for trouble there.
-- Randy
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only