RobotStudio event

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.

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.