Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE error code during shell run
Message
De
14/11/2002 18:27:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
OLE error code during shell run
Divers
Thread ID:
00722999
Message ID:
00722999
Vues:
87
Why does the first code snippet work while the second one generates an error?

Local loShell As Object

m.loShell = Createobject( [WScript.Shell] )

If Vartype( m.loShell ) == [O]

*-- Why does this code snippet work while the one below generates an error
If File( [C:\$DEV\AIMS\LIB\SSREPORT.PDF] )

m.loShell.Run( [C:\$DEV\AIMS\LIB\SSREPORT.PDF], 3, .T. )

EndIf

If file( [C:\PROGRAM FILES\AIMS\V20\SSREPORT.PDF] )

m.loShell.Run( [C:\PROGRAM FILES\AIMS\V20\SSREPORT.PDF], 3, .T. )
* OLE error code 0x80070002: The system cannot find the file specified.

EndIf

Endif
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform