Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing object TO VFP
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Passing object TO VFP
Miscellaneous
Thread ID:
00407763
Message ID:
00407763
Views:
42
I'm having trouble passing an object from Word to VFP. The following code passes a character string, not an object:
    Dim VFPOLE As Object
    Dim lobject As Object
    '-- Assign object reference to variable
    Set VFPOLE = CreateObject("VFPOtest.VOServer")
    Set lobject = ActiveDocument
    VFPOLE.Getinfo (lobject)
    '-- Release the reference
    Set VFPOLE = Nothing
I've also tried assigning lobject as me and me.activewindow.document and a bunch of other stuff. Nothing is working. In VFP I save the memory to a txt file right after the parameters statement and it shows me the parameter is of Char type and gives the name of the document. Ideas?
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Next
Reply
Map
View

Click here to load this message in the networking platform