Re: User Defined type()
- From: "Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Jan 2006 10:54:57 -0000
Swap indices when sorting, not element values. It's much quicker. In other
words, keep a separate array of indices and swap them around as you sort
your source array
Tony Proctor
"Lex Harrelson" <lexharr@xxxxxxxxx> wrote in message
news:dq1kpo$2h2h$1@xxxxxxxxxxxxxxxxxxxx
> I have user defined type dim 1000 deep....This data is collected from a
> comma delimited file....I want to sort the array with a method that
requires
> the swapping of the compared type....tryng this in vb.net I get a casting
> error when I execute the swap of :
> array(0)=array(10)
> array(10)=array(100)
> array(100)=array(0)
> The user defined type as 7 elements that are a mixtue of string and
nemeric
> Thanks in advance for any help offered
>
> Lex
>
>
.
- Prev by Date: Re: Date,Time Calculations
- Next by Date: Re: Software copy protection
- Previous by thread: Re: User Defined type()
- Next by thread: Suppressing error message in msgBox
- Index(es):
Relevant Pages
|