Replace Index Variable in Screen switch function using VBA

Replace Index Variable in Screen switch function using VBA

Greetings,

I’m writing code to create functions with VBA. While creation of RT function is successful, I’m getting an error while replacing Index Variable in Screen switch function. Please note that Zenon version is 8.20

 

I’m following this example from Zenon help:

 

This is my code:

I’m getting error at line highlighted with red box.


 

Below screenshot from help file regarding Index variable.

 

BR,

Janak Panchal