V4RB - cursor.nextrecord trouble
Robert Nichols
robert at formworkdesign.com
Tue May 8 22:23:20 CDT 2007
I've finally got time to move an old project up to more recent
Valentina version. Right now I'm testing on VServer 2.5.9 and plugin
V4RB_Carbon..don't know what version. The plugin file appears to be
dated April 7, 2007. (Separate question: Is there any reason to take
baby steps like this? Should I just start testing in v 3.0?).
My problem appears to be with a cursor that moves two records
following a SINGLE nextrecord command. It is a cursor with
recordcount = 20. I can iterate through to position 19. My code at
position 19 works fine, then when I hit cursor.nextrecord,
immediately the cursor position indicates 21. I'm not joking. The
cursor seems to work ok, though. I can read a value from the field
(though I don't have much confidence in which record I'm actually
reading (haven't tested that yet). But in my code, I map
cursor.position to other items that are supposed to have parity with
the cursor, in this case a listbox that has the same number of rows
as the cursor. When cursor read postion = recordcount + 1, then I
choke when trying to edit the listbox row that doesn't exist.
does anyone know about this? Should I just move up to 3.0 and spend
my conversion efforts on newer Valentina code?
Thanks.
I'm working on Mac OSX 10.4.9
________________________________________________________________________
_____
robert nichols
formwork design llc | 114 3rd st ne | charlottesville, va 22902 |
www.formworkdesign.com
More information about the Valentina
mailing list