
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.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