Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB syntax in call to VFP
Message
From
11/06/2001 16:14:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
VB syntax in call to VFP
Miscellaneous
Thread ID:
00518075
Message ID:
00518075
Views:
60
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
Map
View

Click here to load this message in the networking platform