Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pack Database with OLEDB ?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00581175
Message ID:
00586383
Views:
31
Steve,

>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. :)

What about firing up the Application COM object, as in:

VisualFoxpro.Application.7

Maybe the run-time doesn't like be fired up as a COM server? Any COM gurus gonna help us out?

At least both VFP and VBScript are getting errors...it would be worse if it worked in the VFP command window but then didn't work in VBScript. I am betting it just doesn't like using the run-time as a COM server. Try using the VisualFoxpro.Application.7 as the COM object and see if that fires up OK.

Otherwise we are at the mercy of anyone else reading...any other ideas?

JoeK
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform