Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spaces in filenames
Message
From
27/06/2000 08:33:03
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
27/06/2000 02:28:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00384902
Message ID:
00384961
Views:
25
David,

I haven't tried this, but if Gavin's idea doesn't work try:

lcMyLongMemoFilename = ["] + ALLT(MyLongMemoFilename) + ["]
IMPORT FROM (lcMyLongMemoFilename)



>Suppose I have a string variable that holds a very long file name with embedded spaces. How would I reference it in a command whose syntax calls for a 'Filename'.
>
>Specifically, I was trying to import a file whose full path and name are stored in a memo record...and having no luck. I got a syntax error when I tried:
>
>import from (mylongmemofilename)
>
>where the memo field mylongmemofilename contains the string of the form
>
>g:\my dir1\my dir2\myfile.xls
>
>(Spaces significant in the above)
>
>I remember reading about how such path specs can be handled, but I'll be damned if I can find the answer in MSDN now!
Previous
Reply
Map
View

Click here to load this message in the networking platform