General information
Category:
COM/DCOM and OLE Automation
Title:
VB syntax in call to VFP
I have a class method in a VFP DLL that starts out like this :
DEFINE CLASS cusInsert as CUSTOM OLEPUBLIC
PROCEDURE mInsert
PARAMETERS cAcct,dBegDate,dEndDate
When I call it from a VB program I get the following compile error:
"Compile error expected : ="
The VB code looks like this :
Dim dDate As Date
Dim cAcctCode As String
cAcctCode = ActiveSheet.Range("AccountCode").Value
dDate = ActiveCell.Value
Dim o As inrawdata.cusInsert
Set o = New inrawdata.cusInsert
o.minsert (cAcctCode, dDate, dDate)
End Sub
I know this must be something silly, but I don't do VB all that often. I've checked that the dDate and cAcctCode values are proper.
When I had just a single parameter in the VFP code and the line in VB looked like this :
o.minsert (cAcctCode)
It worked just fine.
TIA,
Anthony
Next
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