I want to count all limit of a internal variable with the following code :
public void MacroChangeVar()
{
int Test;
Test = this.ActiveDocument.Variables().Item("TestVariable").Limits().Count;
System.Windows.Forms.MessageBox.Show(Test.ToString());
}
But the return value of the function is Nothing.
The variable has 3 limits but i can't read these count value.
Can you give me an example how i can read out this count value.
Other properties/functions like this.ActiveDocument.Variables().Item("TestVariable").Tagname = "This is a test variable"; work very good.