Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to open an HTML file in the default HTML editor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01176062
Message ID:
01176065
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have the pathname to an HTML file. I would like to open it in an HTML editor (if my understanding is correct default association of HTML file is the browser), FrontPage maybe as a preference editor if multiple HTML editors are present.
>
>Please advise.

Not tested:
LOCAL result
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow
result = ShellExecute(0, 'edit', [FULL_PATH_TO_HTML_FILE_HERE] , '', '', 1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform