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
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: