Results 1 to 2 of 2
  1. #1
    su5
    su5 is offline Member
    Join Date
    Apr 2011
    Posts
    6
    Rep Power
    0

    Default to assign values dynamically

    I've two buttons to submit files to a text area.Both buttons have been given different conditions. Everytime i browse for a file using 1st button, I'm collecting it in a byte array .Then I'm finding it's size. This I'm storing it in a variable,say old_val. Next time i browse for a file using 2nd button, I'm storing the size in new_val.

    Now, when I want to browse for a file again, I need the new_val to be assigned to old_val. Then the recently browsed file size to be assigned to new_val dynamically.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    Just assign the references to what you want. What did you try? Break the problem down, try something, and if it doesn't work post an SSCCE describing in detail the problem.

Similar Threads

  1. Replies: 1
    Last Post: 12-29-2010, 03:45 PM
  2. Iterators - can you assign new values to them?
    By DerekRaimann in forum New To Java
    Replies: 2
    Last Post: 12-09-2010, 08:11 PM
  3. Array Assign Values from a Textfile
    By fawadafr in forum Java Applets
    Replies: 6
    Last Post: 11-30-2008, 01:10 AM
  4. Replies: 0
    Last Post: 05-22-2008, 11:53 AM
  5. passing dynamically generated values
    By abhiN in forum Advanced Java
    Replies: 1
    Last Post: 01-20-2008, 04:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •