• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting a variable from another method??

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..
I am working in a method and I need a variable from another method... and I am not sure how to do that??
I need the variable 'ckb' from this method

and I want to use it in thise Deposit method...

Thx
Rich
(please try to format your code using the [ code] and [ /code] tags without the spaces)
[ January 28, 2002: Message edited by: Cindy Glass ]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You either need to return the value from the method, or you need to declare the variable outside the method so that it is a member variable and not a local variable. You can still set the value in the method, but the value will be available for other uses.
[ January 28, 2002: Message edited by: Cindy Glass ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic