TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Darryl Luff
from: Peter Lavender
date: 1996-05-01 20:33:18
subject: Sorting an array?

Hi Darryl,

And thus Darryl let it be known to Peter:

  DL> Got more stuff going soon, mainly just cases etc though, and a few old
  DL> xt & 286 motherboards. Anyway...

:)... careful... I might be round again..

  >> Thanks for that.  This is indeed what I ended up
  >> having to do.  The sort works as it should, I was just
  >> hoping to cut down on what really is redundant code,
  >> since all I did was cut and paste the sorting code and
  >> change the array to sort.

  DL> Yep, unfortunately that's all you can do.

OK then.. I'll just have to leave at that then.

  DL> Have you tried a sorted collection, they make it nice and 'object
  DL> oriented'. You just need to add to your 'Compare' method for each new
  DL> field.

Nope this was actually for an assignement I'm doing at school, so I really
couldn't do it any other way.

About the only idea I have of OOP is what I have read in the back of the
text book we are using.  I'm hoping next term.. ermm..this term we go into
OOP.

Thanks for the code and info..

Cya,

Pete

... Never call a man fool when you can borrow money from him
--- FMail/386 1.02+
* Origin: Back from Reality. Mail. Files if you can find them! (3:635/309)
SEEN-BY: 633/267 270
@PATH: 635/309 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.