R
Rich
How can I use class B within class A?
public class A
{
public string str1;
public B[] b;
}
public class B
{
public int IDnum;
}
public voic proc1()
{
A a = new A();
a.str1 = "test"
a.b[0].IDnum = 1; <---errors out here -- how to instantiate?
}
Thanks
public class A
{
public string str1;
public B[] b;
}
public class B
{
public int IDnum;
}
public voic proc1()
{
A a = new A();
a.str1 = "test"
a.b[0].IDnum = 1; <---errors out here -- how to instantiate?
}
Thanks