Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serious BUG: TYPE(
Message
De
04/01/2005 07:17:30
 
 
À
04/01/2005 07:04:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00974039
Message ID:
00974041
Vues:
24
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.



>TYPE("someField") return correct type for M,G,.....
>
>For a VarChar it return "C".
>This is documented.
>
>
>CREATE CURSOR bugbug (bug V)
>? TYPE("bug")
>
>
>Now, for knowing if a field is varchar, I must to use AFIELDS() ?
>
>WHY!!!!!!????
>Who can think one similar what?
>
>Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform