Zenon Vars in API

Zenon Vars in API

Hello,
Hello, I have a project (MULTIPROJECT) with the code C #:
String text = "";
int c = 0;
c = this.Variables().Count;
if (c != 0)
{
for (int i = 0; i < c; i++)
{
text += this.Variables().Item(i).Name + "\n";
}
}
else
{
text = "brak zmiennych.";
}
MessageBox.Show("Test :\n" + text);

Displays a blank window. The variables are not available in the API (VSTA C# code).
In an ordinary project (not Multiproject), it works correctly.
What is wrong??

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