Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Word/Excel installed
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00566415
Message ID:
00566780
Vues:
32
< snip >
>>>
>>>This program expects the full version of VFP (with samples) to be installed on the machine, which checks for Word, right? It would not work with only run-time installation, would it?
>>
>>Sure it'll. Just include Registry FFC class (VFP 7) or registry.prg for earlier versions in your project. If you have your own registry class than you can rewrite code to use it.
>
>Thanks. Can we use HOME() function in applications, which we're distributing? Since I'm writing applications for internal use only, I didn't work with Installation programs...
You don't need HOME() in your application. If you've included those files in your project than just modify code as follow
IF VERSION() >= "Visual FoxPro 06"
   oRegistry = NewObject("Registry", "Registry")
ELSE
  SET PROCEDURE TO registry.prg ADDITIVE
  oRegistry = CreateObject("Registry")
ENDIF
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform