Thread: Up and down?

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    104

    Up and down?

    I did a litle prgram that does out a list of numbers and their squares, but when the user aske for alot of numbers (like 1 - 40), the table only lets them see the last few and I can't use the arrow keys to go up.


    Help

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    And ?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Think of the screen as a piece of paper.

    When you fill the paper, you get a new one and continue. But in the case of the screen, the 1st page is burned and you cant get it back.

    The only options you have are:
    1) increase the size of the window or screen
    2) output to a file so it can be printed or looked at in an editor
    3) figure out how to pause when the screen is full and let the user press return to get the next batch of answers
    4) display the chart in columns
    5) anything else I forgot...
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    104
    what about just being able to press up and go up?

  5. #5
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Originally posted by Hexxx
    what about just being able to press up and go up?
    You've "burnt your other pages", you have nothing to go up to.

    From my last post, #1 and #3 are your best solutions. #1 requires you to know your operating system and has nothing to do with your program. #3 is going to give you almost what you want, that is the ability to see the first answers.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed