Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,860

    Re: Accessing Variables Between Classes

    The import statement does not put a class variable in scope.
    Your compiler(?) error message does not give all the information that many compilers provide.
    For example my compiler gives this:

    ...
  2. Replies
    9
    Views
    1,860

    Re: Accessing Variables Between Classes

    Is it in scope where you are trying to use it?
    Classes are independent of each other. What's in one can not be used in another without referencing the class that the variable is defined in.
  3. Replies
    9
    Views
    1,860

    Re: Accessing Variables Between Classes

    Please copy and paste here the full text of the error message.

    Where is the variable displayPanel defined? Is it in scope (within the same {}s) where you are trying to use it?
Results 1 to 3 of 3