RobotStudio event

RAPID variable hiding/referencing

Hi,

I would like to ask you, whether you know about possibility to hide/cloak one variable with other. Let's assume that I have variable numA defined, next I want to define cloaking variable numB. When I write something to numB, it must be written to numA and in opposite direction also.

var num numA;
reference numB;

numA:=10;
tpwrite numB; !in this moment FlexPendant says "10"

numB:=20;
tpwrite numA; !in this moment FlexPendant says "20"

I hope it's not very stupid question.

Any help appreciated.