Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long File Names
Message
De
07/07/1999 11:19:58
 
 
À
07/07/1999 10:21:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00238269
Message ID:
00238320
Vues:
19
>I am trying to append from an excel spreadsheet and am having problems with the long file names in windows. Below is the code. Let me know if any of you have run across this problem.
>
>Thanks
>
>xlsfile = GETFILE("xls", "Import File","Import")
>.
>.
>append from &xlsfile type xls

Don't use macro substitution - it'll bite you in the butt much of the time with LFNs. You can use name resolution like:

APPEND FROM (xlsfile) TYPE XLS

and avoid the problem entirely.

>
>This gives me an error "Command contains unrecognized phrase/keyword." because of the spaces in the macro substitution
>
>also tried
>
>Append from ? type xls
>
>but if the user clicks cancel an error occurs, although this allows the long file names.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform