Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the file extension
Message
De
02/06/2005 11:43:42
 
 
À
02/06/2005 09:53:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01019324
Message ID:
01019426
Vues:
18
Hello,

in most cases.

e.g.
lcValue = 'Alias.SomeField'
?JUSTEXT(lcValue) && = 'someField'
?SUBSTR(lcValue,RAT(".",lcValue)+1) && = 'someField'

lcValue = 'someField'
?JUSTEXT(lcValue) && = '' -> since no '.' in the string means no extension ..
?SUBSTR(lcValue,RAT(".",lcValue)+1) && = 'someField' -> since RAT returns 0 if no point in string
cause i was sure that i always specified alias+fieldname in my controlsources it was save to use justext()


Regards
Christian
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform