The following is a program fragment that is intended to copy a HanDBase database to a Pilot-DB database. I'm using the latest versions of each from their respective websites and Pocket Toolbox 7.5.3. The data appears to be copied successfully, but the field names (past the first one) are not set up correctly. I have other similar programs and databases with more (and different) fields that exhibit the same problem.

1) You are creating a Pilot-DB database rather than a HanDBase one. The second argument of DBcreate() should be a zero to produce a HanDBase database.

2) PocketC multi-demensional arrays are not like true C arrays. As such, you need to pass a pointer to the first data element. For the fourth argument of DBcreate(), use "&p[0][0]" rather than just "p".

3) The database name that you use with DBcreate() and DBopen() differ. This will cause DBopen() to fail.

Also, DBcreate() will fail if database by the name already exist (you have a Pilot-DB database by that name on your device if you ran your demo program.

Thanks for your prompt reply. The change you suggested worked perfectly. For your information, I wanted to copy a HanDBase file to a Pilot-DB file with a slightly different name, hence #1 and #3. When you next update the documentation, you might clarify #2.