Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect Word?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00265981
Message ID:
00266034
Vues:
20
>Instead of checking the return value, check the value of cBuffer after the call is made. It will contain the full path to the executable registered as the default viewer. So you can:
>
>nRetVal = FindExecutable("c:\somedoc.doc",getenv('temp') , @cBuffer)
>llHasWord = LOWER(JUSTFNAME(cBuffer)) = "winword.exe"

Hey, that's a great idea, Erik. I was the one who gave Steve the above code, and I got it from someone else...but I like your idea better, since I've been having some trouble with return values accurately reflecting the situation (as I posted about a few weeks ago).
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform