Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upper and lower case
Message
De
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:
01589989
Vues:
57
This message has been marked as a message which has helped to the initial question of the thread.
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.
>>
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform