Page 2 of 2 <12
Topic Options
#130791 - 2004-12-13 11:12 AM Re: Parsing information from an excel document
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

Baah!! What's wrong with DO-UNTIL then ???




It doesn't answer the problem. It avoids it.

I want to keep the collection enumeration. All the other methods use an indexed access which I wanted to avoid.

The solutions all work perfectly well, however none answer my original question which as Les mentioned is probably not possible.

Top
#130792 - 2004-12-13 11:25 AM Re: Parsing information from an excel document
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure it is.
just don't see any point for it.
_________________________
!

download KiXnet

Top
#130793 - 2004-12-13 01:03 PM Re: Parsing information from an excel document
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Two reasons:
  1. I suspect that using "FOR...EACH" will generally prove to be a faster method than using an index because the method is only called once.
  2. Not all collections can be enumerated by index.

My query was a general one, not specific to this example so we should probably take further discussion over to General.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1635 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.053 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org