I am assuming you mean using URScript on the UR Robot, if not please clarify.
If you write your function correctly you can just pass it. The type is inferred the first time the variable is instantiated and then the type becomes static.
Here is a simple function that I wrote that passes the string to another global variable and then uses it to create a popup.
matthewd92
You’re welcome.
I need pass a string value to a custom function. Is there any way to declare a type for custom function parameters??