Find Records of the Shared File
FINDSHARED pattern, RECORDNAME$, FILEPOINTER [,application$]
Find a record in the shared file with a name, matching the given pattern. Pattern is the beginning of the recordname or empty for all records.
The variable recordname$ gives the name of the found record.
For the first search one has to set filepointer to -1. If a matching record is found filepointer returns the filepointer to the record, otherwise it is returned as -1. For the second and following searches, to find more matching record, you have to leave this unchanged filepointer unchanged.
application is the name of the application, which created the record. If not given the name of the program itself is assumed.
Warning: It is impossible to call the procedure for further search with the returned filepointer if anything is written to flash between the two calles, because filepointers become invalid, by writing to flash ram.
|