logo       

Re: Moving object order in a collection in C#: msg#00046

Subject: Re: Moving object order in a collection in C#
Thanks for the info, Justin.  I'll definately look at this for 
temporary storage.  :)

--- In padnug@xxxxxxxxxxxxxxx, Justin Collum <jcollum@xxxx> wrote:
> There is a Queue object in C#, would that help? You could stow them 
in the 
> queue in the new order (or the reverse, can't remember which). 
> 
> On 8/23/05, Keith R. Pinster <dimondwoof@xxxx> wrote: 
> > 
> > I've got an object that has a set of sub-objects. I want to be 
able to 
> > retrieve the sub-objects in a certain order. Is there a way to 
change 
> > the index of the sub-objects?
> > 
> > E.G:
> > Favorites:
> > Cars:
> > 1. Corvette
> > 2. Nova
> > 3. Firebird
> > 
> > User wants to change the order so that it reads:
> > 1. Corvette
> > 2. Firebird
> > 3. Nova
> > 
> > Currently I'm tracking the order with an Order int field, but 
this 
> > seems really messy and error prone. Any ideas?
> > 
> > 
> > 
> >  ------------------------------
> > YAHOO! GROUPS LINKS 
> > 
> > 
> >    - Visit your group "padnug 
<http://groups.yahoo.com/group/padnug>" 
> >    on the web.
> >     - To unsubscribe from this group, send an email to:
> >    padnug-unsubscribe@xxxxxxxxxxxxxxx<padnug-
unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> >     - Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> >    Service <http://docs.yahoo.com/info/terms/>. 
> > 
> > 
> >  ------------------------------
> >
> 
> 
> [Non-text portions of this message have been removed]




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hjm9h60/M=362335.6886445.7839731.1510227/D=groups/S=1705007709:TM/Y=YAHOO/EXP=1124834248/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>