Results 1 to 4 of 4

Thread: Reverse Collection

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598

    Reverse Collection

    Hi All,

    I am trying to implement some methods so I can do the below functions

    Code:
            public MyCollection BringToFront(MyCollection coll)
            {
                MyCollection tem = coll;
                tem.Reverse(Index,0);
                return tem;
            }
    
            public MyCollection BringCloser(MyCollection coll)
            {
    
            }
    
            public MyCollection SendToBack(MyCollection coll)
            {
    
            }
    
            public MyCollection SendFurther(MyCollection coll)
            {
    
            }
    But I am having some difficulties, couls someone please show me how to do this?

    Thanks

    Loftty

  2. #2
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: Reverse Collection

    Maybe somebody else does, but I have no idea what you want to do in those functions. Can you actually explain what you want to do?

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Reverse Collection

    Try reading your own post and ask yourself whether you would have any idea what it was about if that was all the information you had. Now do that every time you post. If you would like us to take the time to help you then please take the time and make the effort to provide a clear description of the problem. The character limit per post is several thousand, so don't be afraid to provide a bit more information.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Reverse Collection

    I think you might want a Queue or a Stack, not a collection.

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