Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0 length string is not recognized ???
Message
De
06/01/2002 04:27:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00597801
Message ID:
00601258
Vues:
22
>Can use TYPE or VARTYPE to check it is a string
>
>IF TYPE("m.MyChar") = "C" AND EMPTY(m.MyChar)

Yes, though I only use TYPE() when that's the best option. VARTYPE() is more straightforward in most cases. I also recomment using the #DEFINEs for VARTYPE() found in foxpro.h. I would probably write this statement as:
#INCLUDE "foxpro.h"

IF VARTYPE(m.lcMyChar) = T_CHARACTER .AND. EMPTY(m.lcMyChar)
    (some code)
ENDIF
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform