Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pack Database with OLEDB ?
Message
From
26/11/2001 15:39:25
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00581175
Message ID:
00585971
Views:
37
Hi Steve Try oVFP = CreateObject("VisualFoxpro.Application.7")

>I made this in VBScript:
>	Set oVFP = CreateObject("VisualFoxpro.Runtime.7")
>	oVFP.DoCmd("Open Database c:\cache.dbc Exclusive")
>	oVFP.DoCmd("Pack Database")
>
>And I got this error:
>C:\wintemp\a.vbs(3, 2) Microsoft VBScript runtime error: Object required: 'oVFP'
>
>Then I tried this in the VFP7 IDE:
>	oVFP = CreateObject("VisualFoxpro.RunTime.7")
>
>And I got this error:
>OLE error code 0x80004002: No such interface supported
>
>
>I ran COM Explorer and see that under DLL servers there is a ProgID of "VisualFoxPro.Runtime.7" and it points to c:\program files\common files\microsoft shared\vfp\vfp7r.dll, something is just not quite right. I like your idea of instancing the runtime, I just can't get it to work. :)
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform