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.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 80 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 31 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
