Results 1 to 3 of 3

Thread: Select a previously unsellected Array

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    14

    Unhappy

    This has been frustrating me as I can only think of a very long winded way of doing this:
    (I'm sure my frustration has clouded an abvious and short way!)

    I have an array, and in' each one is a picture. at the moment I have a command button that randomly scrolls through the images in any order, but it can repeat images it has already been to.
    I would like to know if there is any way of selecting an array object, and then disguarding it so it cannot be viewed again (untill the show random button in re-pressed, or the app re-started)
    much thanks for any suggestions

    haz

  2. #2
    New Member
    Join Date
    May 2000
    Location
    RI
    Posts
    9

    Talking

    Try setting it equal to a second array, as you display each photo delete the array(current photo) from the group. Once all the photos have been displayed, reset your temp array to the original array and rerandomize.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Are you working with UDT's? or what do you mean with an array conatining picutures? You should place a boolean shown-flag into the udt and make it true whenever you press the command button. Then reset the flags if you press randomize
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

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



Click Here to Expand Forum to Full Width