Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drive letter error
Message
From
10/01/2007 11:10:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Drive letter error
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01184226
Message ID:
01184226
Views:
65
i have the following code

tmpsheet = getobject('','excel.sheet')
xlapp = tmpsheet.application
xlapp.visible = .t.
xlapp.workbooks.open(filename_)

filename_ is '\pinktemp\61332206.xls' gives me an OLE error as File Not Found

but if i give the drive letter 'e:\pinktemp\61332206.xls' then it is works just fine.

my default has been already set as the E drive, so where is it actually looking and how do i make it work without actually specifying the drive letter.
Next
Reply
Map
View

Click here to load this message in the networking platform