Hopefully this isn't an "OOPS" moment as you've backed up your data, but wr+
mode means open for reading, writing or updating. Another thing it means is
that it'll clear any existing data unless the file being opened is a logical
file.
In other words your two records are deleted.

I suspect what you really need is mode "rr+", which means the same
(read/write/update) without clearing the file.

Elvis 

-----Original Message-----
From: c400-l-bounces+ebudimlic=centerfieldtechnology.com@xxxxxxxxxxxx
[mailto:c400-l-bounces+ebudimlic=centerfieldtechnology.com@xxxxxxxxxxxx] On
Behalf Of Brian Lewis
Sent: Monday, January 01, 2007 3:54 AM
To: c400-l@xxxxxxxxxxxx
Subject: [C400-L] _Ropnfbk num_records

_Ropnfbk on a file opened with mode "wr+" returns a valid pointer, not
NULL. Members file_name and library_name are correct. Member
num_records, though, is 0, when I can plainly see with DSPPFM that there
are two records in the file. Any ideas?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.