Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the point?
Message
De
29/05/2003 18:32:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/05/2003 16:04:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00794178
Message ID:
00794267
Vues:
15
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform