Hi
Thanks
Actually I make use of the two functions mentioned , But it doesn't seem to
work.
The code used is
tempDB = DmOpenDatabase(tempCardNo, tempDB_ID, dmModeReadOnly);
offset = Pdb_Header_Size + ((noOfRecs+1) * Pdb_Rec_Header_Size);
rec_num = dmMaxRecordIndex;
error = DmSeekRecordInCategory (tempDB, &rec_num, offset, dmSeekBackward,
dmAllCategories);
if(!error )
{
noOfRecs = DmNumRecords(tempDB);
while(noOfRecs > 0)
{
DmDetachRecord(tempDB,rec_num,&recH);
rec_num++;
DmAttachRecord(TestDB, &offsetP , recH, NULL);
offsetP++;
noOfRecs--;
}
}
DmCloseDatabase(tempDB);
DmDeleteDatabase (tempCardNo,tempDB_ID);
I don't know whether the offset to a record specified is proper. is there
any mistake in the code, Pl. notify me.
TIA
Alagesh
-----Original Message-----
From: Yuri Plaksyuk <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, December 02, 1999 8:30 PM
Subject: Re: Transfer of records from one database to another
>See DmAttachRecord() and DmDetachRecord().
>
>Yuri
>
>> Hi
>>
>> Any one Pl. tell me how to transfer records from one database to
>other.After
>> the transfer I want to delete the database which previously had the
>records.
>>
>> TIA
>> Alagesh
>>
>
>
>
>
>
>
>
--------------------------------------------------------------
Robosoft Technologies, Mangalore, India