Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if file string is and .dbf?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00398179
Message ID:
00398211
Vues:
21
>I find string handling routines one of the most difficult things about the foxpro language syntax. I always go to the "ST" in the reference and find very little on functions/routines on strings. Does someone have a cheatsheat?
>
>Anyway, I have a filename with a path and want to know if the file is an *.dbf. should not be difficult, but i have not been able to do it.
>
>c:\something\somethingelse\data.dbf
cstr = 'c:\something\somethingelse\data.dbf'

ldbf = IIF(UPPER(SUBSTR(cStr,AT('.',cstr)+1,3))='DBF',.T.,.F.)
?ldbf
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform