Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a file goes in lowercase
Message
De
23/09/2004 14:27:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Renaming a file goes in lowercase
Divers
Thread ID:
00945469
Message ID:
00945469
Vues:
61
I have a small routine that renames some files in a directory. I have found that even if I specificy the first character to be upper case, when I look at the file with the Windows Explorer, I can see that the file is entirely in lowercase.

Here is the code:
ADIR(laFile,'*.*','',1)
FOR lnCompteur=1 TO ALEN(laFile,1)
   lcFile=laFile[lnCompteur,1]
   lcFileNew=UPPER(SUBSTR(lcFile,1,1))+SUBSTR(lcFile,2)
   MESSAGEBOX(lcFileNew)
   RENAME laFile[lnCompteur,1] TO (lcFileNew)
NEXT
I can see that the message box displays the file ok thus by having the first letter in uppercase. But, the file created is all in lowercase.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform