Thanks to all those who helped last-time, but i am
still having probs with mulitple DB's
I have 2 DB's that both work o.k on their own.
I have used the same creator ID for both, each has its
own DB name
for example
if(((error=DmCreateDatabase(0,"1DB-T018", 'T018',
'hosp',false))!=dmErrAlreadyExists)&&(error!=0))
if(((error=DmCreateDatabase(0,"2DB-T018", 'T018',
'hosp',false))!=dmErrAlreadyExists)&&(error!=0))
This should be o.k
am i doing the correct thing here?
In my programme // 1DB has newRecord1 // and 2DB has
newRecord2 //
//Constants that define the 1st database record
#define DB_ID_START 0
#define DB_ID_SIZE (sizeof(ULong))
#define DB_ITEM_START (DB_ID_START + DB_ID_SIZE)
#define DB_ITEM_SIZE 2
#define DB_QUANT_START (DB_ITEM_START + DB_ITEM_SIZE)
#define DB_QUANT_SIZE 2
#define DB_RECORD_SIZE (DB_QUANT_START +
DB_QUANT_SIZE)
//Constants that define the 2nd database record
#define DB1_ID_START 0
#define DB1_ID_SIZE (sizeof(ULong))
#define DB1_DATE_TIME_START (DB1_ID_START +
DB1_ID_SIZE)
#define DB1_DATE_TIME_SIZE (sizeof( DateTimeType ))
#define DB1_FIRST_START (DB1_DATE_TIME_START +
DB1_DATE_TIME_SIZE)
#define DB1_FIRST_SIZE 16
#define DB1_RECORD_SIZE (DB1_FIRST_START +
DB1_FIRST_SIZE)
the programme compiles, but when trying to download
onto palm, i get DmNumRecord error
i also used NumRecord1 and NumRecord2
does anybody know what i am doing wrong, what should i
be doing?
i am fairly new to this, i have a number of palm
programming books, but none of them tell you what to
do when it comes to using more than one DB
I am using codewarrior6 C programming enviroment
thanks
adam
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/