cte sistemas
6th August 2010, 20:44
Good Afternoon:

cna anyone helpme?, I'm trying to use stpapi.form.command from VB and i'm getting an error (-11) I saw at BW error message thst said :

AGR error expected long.

i'm calling from VB like:
ssql = "stpapi.form.command(" & Chr(34) & "tdmel0275m000" & Chr(34) & ", " & Chr(34) & 5 & Chr(34) & "," & Chr(34) & "exec.cont.process" & Chr(34) & "," & Chr(34) & "errmess" & Chr(34) & ")"
erreur = BaanObj.ParseExecFunction("ottstpapihand", ssql)

How can I use this?

Thanks

mark_h
9th August 2010, 19:22
Try removing the chr(34) around the 5 and it should be "5".