RobotStudio event

WW SDK and IRC5 arrays [WebWare SDK]

Options

Hi there,

has anybody experienced problems when reading array in IRC5 from a ww SDK app ?

here is some example, which returns an error -550:

 

Option Explicit
  Dim status As Integer
  Dim i As Integer
  Dim ad As S4Array

Private Sub Form_Load()
 
  Set ad = CreateObject("S4Array")
  ad.Type = "num"
  status = ad.SetDimensions(2, 1, 15, 1, 16, 0, 0)
  Label3.Caption = CStr(status)
' here the result indicates everything OK..
End Sub

Private Sub Command1_Click()
  Dim MyNum As Single
 
  status = Helper1.S4ProgramNumVarRead("nFKnr", 0, MyNum)
' here the result indicates everything OK..
'now comes the call givinb an error:

  status = Helper1.S4ProgramVariableRead("nSLE", 1, ad)
  Label3.Caption = CStr(status)
' here the result indicates nothing OK.. -550
  :
  :


Who can give me some help.

I've used vb 6 with interlink 4.5 and a testrack with 5.06.01.03 installed.

Regards

Thomas