cant they?
i seem only to can see them when trying to use the structure if i create an instance of the struct...cant i do this without instanciating it?
Printable View
cant they?
i seem only to can see them when trying to use the structure if i create an instance of the struct...cant i do this without instanciating it?
problem solved
i figured i had to put static in the vars too :DPHP Code:static private struct RGB
{
static public int red;
static public int green;
static public int blue;
}
You are not required to create an instance of a structure using the 'New' keyword. However, if you do not, all the data members will be uninitialized.
whatever :p
You shouldn't have to make the structure static, just the variables.
yea lol that's what i did