Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
How to return data from VB activex dll?
I have a VB activex dll that I start from vfp5. Here is the command...
oVBObj = CREATEOBJECT("mycomm.CommUtil")
thisform.text1.value= oVBObj.Start('ADD')
in VB...
Public Function Start(Mode)
CommScreen.sData = Mode
CommScreen.Show (1)
Start = CommScreen.Text1.Text
End Function
My vb form returns what is in CommScreen.Text1.Text at the start of the form and not what I type in. I assume this is because the
"start" function finishes before I type anything. So I'm at a loss as to how to return the contents of text1 into a vfp editbox.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement