Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the point?
Message
From
29/05/2003 18:32:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/05/2003 16:04:51
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00794178
Message ID:
00794267
Views:
22
>I'm just exploring some of VFP's foundation classes. I ran across this:
>
>
>In app.h is this:
>#DEFINE ERROR_IN_ERROR_METHOD_LOC    "Error in error handler"
>
>As far as I can find it's only used in one place in _error class.
>
>What's the point of defining something in an include file that only gets used once?

Also, you can define any constant which you currently use, perhaps, only once - or even not at all! - with the idea of, perhaps, having more instances later.

For instance, when I needed constants for printer codes (bold on, bold off, etc.), while browsing through the Epson manual, I defined some constants which I don't currently use, but which I might use later.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform