Android Question cursor question

DPaul

Active Member
Licensed User
Longtime User
Hi,

I have been experimenting with the cursor object and it works !
However ;)
Say i do a database call, and the cursor returns records with fields a,b,c.
They are processed via some lenghty code.
I now do a second database call, for fields d,e,f.
They are processed with the same lenghty code, that i have to duplicate because the field names are different.
Solutions:
1.It would be nice that the cursor's field names would be indexed : cursorfield(0), cursorfield(1)...
I cannot find any reference to this in the tutorial, (but it is possible in other languages.)

2.Workaround: store the 3 fields into a vector for each cursor record, and process that.

3.Or another elegant solution ?

thx,
Paul
 
Last edited:

DPaul

Active Member
Licensed User
Longtime User
Aha, can't find getstring2 method in the tutorial pdfs !
Let's try it !
Thanks
Paul
Edit : great stuff !:)
 
Last edited:
Upvote 0
Top