Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serious BUG: TYPE(
Message
De
04/01/2005 11:04:24
 
 
À
04/01/2005 10:58:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00974039
Message ID:
00974095
Vues:
20
>Hi Fabio.
>
>>TYPE("someField") return correct type for M,G,.....
>>
>>For a VarChar it return "C".
>>This is documented.
>
>This isn't a bug because in VFP, Varchar isn't really a new data type -- it's simply a character string that certain VFP functions automatically trim. I agree it would be nice that TYPE() would return the expected value, but it's due to how strings are treated in VFP.
>
>Doug

This is not true.
Varchar field save the string + lenght. No trim is done.
It is a different field.
CREATE CURSOR bugbug (bug V(10))
INSERT INTO bugbug VALUES (' ')
INSERT INTO bugbug VALUES ('  ')
scan
 ? LEN(bug)
endscan
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform