Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing object TO VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Passing object TO VFP
Divers
Thread ID:
00407763
Message ID:
00407763
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform