If you declare the variable outside of a function it will be a member
variable and will retain its value.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Robs
Sent: Friday, January 27, 2006 11:48 AM
To: [email protected]
Subject: [flexcoders] Problem with Remote Objects - Urgent

Hi all,
  I have a java class which performs file I/O operations. It lists all 
the root folders within a specified path on my disk & returns the 
folder names in a string array which, I then use to populate my tree 
control.
  I have a local array var within which I store this result, e.g.,  
myArray = event.result;. 
  I am calling the same class multiple times to get a result of folder 
trees, specific levels deep. The issue is that my array variable 
persists the data got from the previous call.
  Why is this happening? What should I do to rectify this?

Thanks.
  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to