Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upper and lower case
Message
 
À
12/12/2013 03:32:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01589964
Message ID:
01590201
Vues:
43
thanks Thierry - good advice - will do.
k

>1/ == is safer than $ (eg, also matches 'xlsx1')
>2/ Lower() on the shortest string is faster
>
>if Lower(Justext(m.lcFileName)) == 'xlsx'
>
>
>>I realize after I wrote this that I can force the variable into lower case as a solution
>>lower(lcFileName)
>>I assume the characters XLSX and xlsx are different species in terms of ansi numbers and that it may not be possible to reconcile.
>>k
>>
>>>is there a function that accepts upper AND lower case - right now my program (excerpt below) only detects lower
>>>
>>>
>>>if 'xlsx' $ Justext(lcFileName)  = .T.
>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform