Information générale
Catégorie:
Codage, syntaxe et commandes
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!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement