Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Including Automation Components in a Project
Message
 
 
À
09/02/2004 21:48:32
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00875738
Message ID:
00875749
Vues:
18
Mike,

I was in the process of updating the reply for VFP7, but couldn't since you'd just replied.

Update, I see you are doing this in VFP7 so you have to use an error trap on this
oExcel = createobject( "Excel.Application" )
if ( vartype( oExcel ) != "O" )
   Messagebox( "you must install Excel in order to be able to use this cool feature of my app" )
endif

* Error method of the class trying to run the above code
lparameter nError, cMethod, nLine

if ( nError = 1733 )
   * problem starting up Excel
   return
else
   dodefault( nError, cMethod, nLine )
endif
>You are absolutely right.
>
>I have installed Excel and it works fine now.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform