Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROPER in putfile
Message
De
02/04/2004 19:10:15
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
02/04/2004 18:30:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00891677
Message ID:
00891939
Vues:
34
Evelyn-
>
lcMyResult = PUTFILE('FileName:',ALLTRIM(PROPER(drs.Description)),'pdf')
>
>but it's still giving me filenames such as "proper in putfile". i want it to appear like "Proper In Putfile". the ones saved in my table are the ones like "Proper In Putfile".

In your example, you're passing a PROPER() expression, but you'll notice that PUTFILE doesn't care, it makes it all lower case. So you have to PROPER() the result. However, note that PUTFILE returns the path, too, so PROPER won't have the affect you want. Something like the following might work for you, if I understand your meaning.
LOCAL lcFileName, lcDir
lcFileName = "My File.DOC"
lcFileName = PUTFILE("Filename:",lcFileName,"doc")
lcDir = ADDBS(JUSTPATH(lcFileName))
lcFileName = lcDir + PROPER(JUSTFNAME(lcFilename))
?lcFileName
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform