Quote:
Is it possible to pass parameters to the call-back function used with
associate()? |
The database handle is passed to the callback, so you can hang
additional information from the DB->app_private field.
Quote:
How would you recommend creating a call back function for database
layouts that are dynamic (layouts that are not in a structure)? |
I'm not sure exactly what you're asking here, but the main thing to be
aware of is that your callback must return the same secondary for a
given (primary key, data) pair every time it is called. You can't
assume that the callback will only be called the first time the data is
inserted. For example, when you overwrite or delete a record, the
callback is called with the original values, and must return the
original secondary key.
Regards,
Michael.