Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Lewis Balentine
Thank thee ... :-) I did follow that path and I did miss the nuance of the second example. On 01/10/2015 03:04 AM, Caveat wrote: I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result And then clicked on the big obvious link to FOR EACH, arriving here:

Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Caveat
I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result And then clicked on the big obvious link to FOR EACH, arriving here: http://gambaswiki.org/wiki/lang/foreach And then didn't look at the second example... :-P Kind regards, Caveat On 10/01/15 09:52, Lewis Balentine wrote:

[Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Lewis Balentine
Result (gb.db) This class represents the result of a SQL request. This class is not creatable. This class acts like a read / write array. This class is *enumerable* with the FOR EACH keyword. Guess this should be obvious but not to me pray tell what type/class does one use to enumerate it

Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Caveat
But the documentation arrived at by following the enumerable link doesn't give a fully working code example, and also doesn't document whether the order of the enumeration is predictable, which we'd better hope it is if you ever decide to use an order by clause :-D I'll see if have time to

Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Lewis Balentine
I does work as expected with the order by clause. On 01/10/2015 06:16 AM, Caveat wrote: But the documentation arrived at by following the enumerable link doesn't give a fully working code example, and also doesn't document whether the order of the enumeration is predictable, which we'd better

Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Tobias Boege
On Sat, 10 Jan 2015, Lewis Balentine wrote: On 01/10/2015 03:04 AM, Caveat wrote: On 10/01/15 09:52, Lewis Balentine wrote: Result (gb.db) This class represents the result of a SQL request. This class is not creatable. This class acts like a read / write array. This class is