Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to launch a vfp program from html ?
Message
 
À
08/08/2002 06:11:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00687426
Message ID:
00687444
Vues:
11
>I was asked to launch a vfp application (an exe file) by clicking a button in a html document. Both html and vfp program are on a single PC
>
>What Have I to do ?

Try this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2600.0" name=GENERATOR><SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--

Function form1_onsubmit
	Set WshShell = CreateObject("WScript.Shell")
	WshShell.Run("YourVFPProgramHere.exe")
	form1_onsubmit = false
End Function

-->
</SCRIPT>
</HEAD>
<BODY>
<FORM name=form1>
<INPUT id=submit1 type=submit value="Run program" name=submit1>
</FORM>
</BODY></HTML>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform