
SDK Error Constants [WebWare SDK]
Comments
-
Hi,can you please explain your problem again, I don't fully understand what you want to accomplish?
If you want them manually then you have them in the [Installation and Setup Guide] chapter 4.
If you programmatically have the number but want the description then you can use the Helper.ErrorMessage(errorcode) function
Here is a short example:
intRetVal = Helper1.S4ProgramVariableRead(Text2.Text, 0, myArray)
If intRetVal <> 0 Then
Label1.Caption = Helper1.ErrorMessage(intRetVal)
Exit Sub
End If
It would also be possible to do something like this:
Label1.Caption = Helper1.ErrorMessage(Helper1.S4ProgramVariableRead(Text2.Tex t, 0, myArray))
0 -
That's what I am doing. What I am looking for are constants for the actual error codes. What I am forced to do at present is to create a constant for each error# (rather than use "-3113" atl the time). Example...
Const SDK_ERR_DIR_NOT_EXIST = -3113
sdk_status = ilinkRobotHelper.S4Dir(ilinkRobotHelper.DevList(0), edtDeviceDir.Text, SDK_UNIMPLEMENTED_ARG, 3, lResultID)
If ( SDK_ERR_DIR_NOT_EXIST = sdk_status) Thenmsgbox( ilinkRobotHelper.ErrorMessage(sdk_status) )
end if
thanks,
0 -
Ok, now I'm following.
I don't think there is such a list of error number constants. Sorry.
0
Categories
- All Categories
- 5.4K RobotStudio
- 379 UpFeed
- 15 Tutorials
- 12 RobotApps
- 286 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 272 IRC5
- 41 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 731 RAPID Programming
- 15 Wizard Easy Programming
- 108 Collaborative Robots
- 3 Job listings