Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constants vs Locals
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00269906
Message ID:
00270280
Views:
28
>It's a convention that constants be entered in all uppercase, but not necessary. You can use mixed or lower case if you want. That may help with the cluttered look.

That's an idea, though one might want to create a prefix to differentiate them, something like that. (let's see, I guess we can't use 'c' :)

Anyway, I think I'm finally getting the feeling of the idea here, that Jim & Erik were trying to tell me: Just keep *all* the constants in one header file, even if they're only used one time in one method, instead of declaring them inside a method. It may be a little difficult in design, but one can always print a hard copy of the header and tack it on the wall for reference :)

In the long run, this should be easier for maintenance.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform