Hi,

 

I need some help please, I've written an API (class) to be used to write
certain data to table of ours. I created it with about 10 parameters that
can be sent to it. But the problem is that when I call it with more than 6
parameters it gives me invalid number of argument sent.

 

Here is the VB app that calls the class in Axapta. What is wrong? Am I
limited to only 6 parameters, because then it works. If so how do I read
objects in Axapta?

 

Private Sub Command1_Click()

 

Dim JobCard As Object

Dim sString As String

 

Set JobCard = Axapta.CreateObject("Class")

sString = JobCard.Call("CreateJobCard", "2345", False, "VB Test", "Param", "
Param ", " Param ", " Param ")

Label1.Caption = sString

 

End Sub

 

Private Sub Form_Load()

Set Axapta = CreateObject("AxaptaCOMConnector.Axapta2")

Axapta.Logon2 "user", "", "company", "", "SeverName", "Axapta",
"AxaptaConfig"

End Sub

 

Private Sub Form_Unload(Cancel As Integer)

Axapta.Logoff

End Sub

 

Regards

Andre



[Non-text portions of this message have been removed]

Reply via email to