Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open xls file
Message
 
 
To
23/08/2007 10:35:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249856
Message ID:
01249859
Views:
23
*lcFileName = ["C:\TEST.XLS"]
lcFileName = ["C:\MY FILE\TEST.XLS"]
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(lcFileName)
>
>I want to add a button to help user open a xls file.
>Program as below : -
>
>Mybutton.click
>--------------
>QQQ = "C:\TEST.XLS"
>oShell = CREATEOBJECT('WScript.Shell')
>oShell.Run( (QQQ) )
>
>
>It can work
>But i will get error when QQQ = "C:\MY FILE\TEST.XLS".
>Is't there was spacing inside QQQ ??
>
>Can you tell me how to do it ?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform