|
-
Nov 8th, 2002, 08:02 AM
#1
Thread Starter
yay gay
structure's variables cant be seen when using static?
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?
-
Nov 8th, 2002, 08:04 AM
#2
Thread Starter
yay gay
problem solved
PHP Code:
static private struct RGB
{
static public int red;
static public int green;
static public int blue;
}
i figured i had to put static in the vars too
-
Nov 8th, 2002, 08:29 AM
#3
PowerPoster
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.
-
Nov 8th, 2002, 08:30 AM
#4
Thread Starter
yay gay
whatever
-
Nov 8th, 2002, 01:08 PM
#5
Hyperactive Member
You shouldn't have to make the structure static, just the variables.
-scott
he he he
-
Nov 8th, 2002, 02:54 PM
#6
Thread Starter
yay gay
yea lol that's what i did
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|