General information
Category:
COM/DCOM and OLE Automation
Title:
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.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only