Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running VFP7 from VBSCRIPT and createobject
Message
 
 
To
19/11/2004 23:08:42
Arden Weiss
Liberty Computers Ltd.
Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00963143
Message ID:
00963159
Views:
8
' Default VFP version. It's either last installed or last registered VFP version.
set oVfp = createobject("VisualFoxPro.Application")
' VFP 7
set oVfp = createobject("VisualFoxPro.Application.7")
>The following code structure loads a local copy of Excel fine from an HTML page. Can VFP 6 or 7 also be loaded in this same way -- if so, what is the createobject command syntax to do so -- I tried createobject(vfp7.Application) without success -- thanks so much for any help/advise...
>
>sub button1_onclick()
> ' Launch Excel
> dim app
> set app = createobject("excel.Application")
> ' Make it visible
> app.Visible = true
> ' Give the user control
> app.UserControl = true
>end sub
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform