Results 1 to 2 of 2

Thread: How to reverse the order of a dynamic control array

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2011
    Posts
    13

    Question How to reverse the order of a dynamic control array

    I need a solution for reversing the order of a dynamic control array. I have a picturebox array which is a container for five textbox arrays. Each array index is populated by one row of a database record. Problem is, the array ends up in reverse order. I guess an alternative would be to poulate it in reverse order, but I don't know how to do that either. Any help would be appreciated.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: How to reverse the order of a dynamic control array

    If you know how many there will be in the array in advance, simply load it in reverse order...
    Code:
    Load txtWhatever(5)
    ' change txtWhatever(5) properties as needed (i.e., visible, enabled, ZOrder, etc)
    
    ' then later as needed
    Load txtWhatever(4)
    ' etc
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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