Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to launch a vfp program from html ?
Message
 
To
08/08/2002 06:11:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00687426
Message ID:
00687444
Views:
12
>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>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform