Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROPER in putfile
Message
From
02/04/2004 19:10:15
 
 
To
02/04/2004 18:30:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00891677
Message ID:
00891939
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform