> When I access the database with the program that created it, it doesn't
> matter whether I open it with mode dmModeReadWrite or mode dmModeReadWrite |
> dmModeShowSecret, DmNumRecords always returns 1 - in either case, and I can
> access the record with DmGetRecord.
>
> Doesn't an open mode without dmModeShowSecret hide secret records, or is the
> program expected to skip them. Why is there an open mode dmModeShowSecret?
>
> Ingo
>
Some routines use the dmModeShowSecret, and some don't From Palm
Programming, page 151 (by permission:)
Once you [request that secret records be skipped], some of the database
operations on that open database completely ignore secret records. The
routines that take index numbers (like DmGetRecord or DmQueryRecord) don't
ignore secret records, nor does DmNumRecords. DmNumRecordsInCategory and
DmSeekRecordInCategory do ignore secret records, though. You can use these
to find a correct index number.
Neil Rhodes