INSTEON Hub: Developer’s Guide
Page 42 © 2013 INSTEON
only one of the matching records, then you should:
1. Use Find First and Find Next to find and buffer all of the records matching the <ALL-Link
Group> and <ID>,
2. Use Delete First Found enough times to delete all of the matching records,
3. Put back the records you did not want to delete using Modify First Controller Found or Add
or Modify First Responder Found or Add.
Please be aware that you can damage an ALDB-L (linear) database if you misuse the Modify First
Found or Add operation, <Control Code> 0x20. For instance, if you zero bit 1 of the <ALL-Link
Record Flags> byte in the first record in an ALDB-L, the ALDB-L will then appear empty. Or, if you
zero bit 7 of the <ALL-Link Record Flags> byte in an ALDB-L record, then that record will appear
deleted. In an ALDB-T (threaded) database, the IM handles those bits for you automatically, so the
Modify First Found or Add operation is not so risky. Nevertheless, it is always preferable to use
Modify First Controller Found or Add or Modify First Responder Found or Add instead, because
with Modify First Found or Add you cannot be sure if you are modifying a record for a Controller or
Responder.