Data type: anytype
Hi...
There is a possibility that I can pass an ANYTYPE parameter in one of my routines.
As RS does not handle method overloading, I would like to create a procedure where I can pass either a 'num' or a 'string' without having to use optional parameters.
Something similar to ValToStr() where: 'Val' is of type 'anytype'.
Thanks.
0
Answers
-
Sorry to be the bearer of bad news, but no you cannot. Below I have an exert from the RAPID Kernel manual.
Note that anytype is just a marker for this property and should not be confused with a "real" data type. Also note that RAPID routines cannot be given anytype parameters.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings