Variable ant it's Rema value

Variable ant it's Rema value

Hello guys,
Does anybody know how to get actual Variable Rema state text.
In another word. How to get rema status text which coresponds actual variable value.
string rema_ID = Convert.ToString(myIntVariable.get_DynProperties("Rema"));
myRema = myRemas.ItemById(Convert.ToInt32(rema_ID));
RemaText = myRema.StateItem(myIntVariable.StatusValue).Text;
------------------Here something wrong ----------

How to merge Rema State Item and Variable current value.
Sorry for my English I hope you undestand me.
Best regardsd

This is a migrated post! Originally posted on 24.02.2011 by user softart2. Please be aware that information can be outdated.