Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import from fails
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Import from fails
Divers
Thread ID:
00279051
Message ID:
00279051
Vues:
57
If I enter this line of code in my application it works:

import from "C:\Data\dBases\Beyond Gold\Test.xls" database BG name Incoming type xl8 as 1252

If I save "C:\Data\dBases\Beyond Gold\Test.xls" to a variable m.Test and then use that thusly:

import from m.Test database BG name Incoming type xl8 as 1252
or
import from &m.Test database BG name Incoming type xl8 as 1252
or
import from eval(m.Test) database BG name Incoming type xl8 as 1252

all fail with file not found.

Is there any way of using Import From with a variable file name?

TIA

DJ
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform