Is the variable static or non-static? If you do not use the keyword 'static', the variable is only available to particular instances of the object (ones created with the new keyword). If you are attempting to access the variable from a method marked 'static' (i.e. public static void main), you must label the variable at the top 'static' as well.
static int number; [ November 07, 2004: Message edited by: Nick George ]
I've heard it takes forever to grow a woman from the ground
Please post the specific code. Trying to summarize often loses important details and we have to guess what the problem is. Even if the cause of the problem isn't obvious to you, it might be obvious to someone here if we can see your actual code.
Be sure to use UBB CODE tags to preserve your formatting. There are buttons below text box where you edit a message that can help with this. If you take the small amount of time to do this, your code will be much more readable and we will be able to help you more easily.