
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
Best Answer
-
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings