Hi guys, I need your help:
I tried to initialize an array like this:
string[] relation1;
then I fill it with another function that contains the code:
for loop then:
relation1[z] = something;
but...compiler always writes that:
relation1' is never assigned to, and will always have its default value null
I've read somewhere that I need to initialize arrays with:
string[] relation1 = new string[50];
but my array needs to stay DYNAMIC so I cannot assign 50 items to it!
how to solve that issue?
and whats the difference between
string[] relation1;
and
string[] relation1 = new string[50];
why I cannot use simpler method that should work:
string[] relation1;
?
It was working in my another program, and I dont see much difference between both of them :/
Anyway I need it dynamic!
THX in advance for your help