Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Re: Newb question: Using the same object over two methods?

    Make e a class variable. Then all methods can see it.
    Recommendation: Change the name to a meaningful one vs a single letter.
  2. Re: Newb question: Using the same object over two methods?

    Yes every time you define a variable in its own scope, a new object will be created.

    If the e.commit() call uses a different object than the one with the data, then the data won't be there.

    The...
  3. Re: Newb question: Using the same object over two methods?

    You need to move the definition of e to put it in scope for the savePosition() method.
Results 1 to 3 of 3