Re: DmFindRecordByID API is Failing?? plz help

2005-04-06 Thread chintan
Database:Unique ID not found(Dm 0218)

I'm not sure I guess when the new PDB file is installed does its recordID 
changes?? May be because of that. Is It?




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: DmFindRecordByID API is Failing?? plz help

2005-04-06 Thread chintan
Its getting proper value in typeID 
It Display the Alert Message as follows

Database:Unique ID not found(Dm 0218)



I'm not sure I guess when the new PDB file is installed does its recordID 
changes?? May be because of that. Is It?

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: DmFindRecordByID API is Failing?? plz help

2005-04-06 Thread Chris Tutty
From: [EMAIL PROTECTED]
 Its getting proper value in typeID 
 It Display the Alert Message as follows
 
 Database:Unique ID not found(Dm 0218)
 
 I'm not sure I guess when the new PDB file is installed does its 
 recordID changes?? May be because of that. Is It?
 
This topic has been covered in the archives. From memory the 
uniqueid generation can be re-initialised by a hard-reset and
there are issues associated with restored databases.  You
might find that the uniqueid isn't suitable for the purpose you 
are using it, but the archive (found by following the auto-attached
link to the palmos dev forums page) has more detail on this.

Chris Tutty

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: DmFindRecordByID API is Failing?? plz help

2005-04-04 Thread A.Kazantsev
What does the error message read? Is it Unique ID not found? Your
typeID has to be a valid unique ID of the record once created within
your gTypeDB database.

cec // I am retriving typeId from buffer getting proper value
cec typeId = StrAToI(record-fields[FortressFieldType]);

cec then passing typeId  to API below 

cec DmFindRecordByID(gTypeDB ,typid,typeindex);

cec and typeid and typeindex is declared as follows
cec UInt16 typeindex=0;
cec UInt32 typeId = 0 ;
cec //gTypeDB is DmOpenRef

cec I have no idea why this DmFindRecordByID is returning error.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/