Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open xls file
Message
 
 
À
24/08/2007 01:01:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01249856
Message ID:
01250088
Vues:
34
MYFILE = "C:\MY FILE\TEST.XLS"
lcFileName = ["] + MYFILE + ["]
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(lcFileName)
>
>
>Thank for you help, i have try your code. It is work :)
>
>
>*lcFileName = ["C:\TEST.XLS"]
>lcFileName = ["C:\MY FILE\TEST.XLS"]
>oShell = CREATEOBJECT('WScript.Shell')
>oShell.Run(lcFileName)
>
>
>But it can't work when i put a variable as below:-
>
>MYFILE = "C:\MY FILE\TEST.XLS"
>lcFileName = [MFILE]
>oShell = CREATEOBJECT('WScript.Shell')
>oShell.Run(lcFileName)
>
>I have try to use:
>lcFileName = [&MFILE]
>lcFileName = [(MFILE)]
>But still can not work !!!
>
>Many thanks for you help
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform