At 9:18 AM -0700 5/11/99, Steve Patt wrote:
>index should ALWAYS be "CurrentRecord", not CurrentRecord-1, since the
>existing records are numbered 0 through CurrentRecord-1 so assuming you
>want to add one at the end, use CurrentRecord. This code adds a record at
>the penultimate position, which isn't what you want.
Actually, if you just want to append to the end, pass dmMaxRecordIndex as the "atP" value, and skip the computation with DmNumRecords. DmNewRecord is documented as appending to the end if the atP value is greater than the number of records in the database, and the atP will be modified to return the index number the record got.
--Bob
- Database sorting Webmaster
- Re: Database sorting Steve Patt
- Bob Ebert
