Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import from fails
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Import from fails
Miscellaneous
Thread ID:
00279051
Message ID:
00279051
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform