Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serious BUG: TYPE(
Message
De
04/01/2005 13:47:00
 
 
À
04/01/2005 12:41:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00974039
Message ID:
00974154
Vues:
21
What's wrong with one these options:

1. Hardcoding
2. Put #DEFINE T_VARCHAR "V" in your own standard.h file invoked AFTER foxpro.h
3. Add #DEFINE T_VARCHARFABIO "V" in foxpro.h

2. is my favourite. BTW, I never #include foxpro.h, I have my own standard.h which include only the constants I really need, including constants for other programs I use frequently. (Did someone mention that include is not only a reserved word in VFP, it is also a very frequently used word) <s>

>>Hi Fabio,
>>
>>first of all, documented behavior is not a bug...! But, I also agree that it is not logical to let different field types give the same return value when it should be easy to give different values.
>>
>>My guess is that since TYPE() and VARTYPE() mostly is used to check memory variables and properties, and not fields, it was low priority. Personally I ALWAYS use AFIELDS() for fields, I even wrote a FIELDTYPE() function many years ago, as a part of my standard function library.
>>
>
>Well,
>then try to use the FoxPro.h T_VARCHAR definition with AFIELDS().
>
>Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform