Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages
Started by pa3k
Thu, 28 Oct 1999 00:00
BDE: Master/Detail with expression; DbiLinkDetailToExp. Please help!
Author: pa3k
Date: Thu, 28 Oct 1999 00:00
Date: Thu, 28 Oct 1999 00:00
30 lines
1549 bytes
1549 bytes
hi, I've got a problem. I have two tables dBase III, let's say MasterTable and DetailTable. I have created .cdx index based on expresion: Field1+str(Field2 , 3, 0) in DetailTable. Now I want to meke relation between these tables on Field1 AND Field2. I'm quite new to CPP and BDE so everything i did is based on help. I wrote something like this but it doesn't work. --------------------------------------------------------------- PChar pszMasterExp; IDXDesc DetIdxDesc; hDBICur hMastCursor, hDetCursor; DbiCloneCursor(MasterTable->Handle,false, false, hMastCursor); DbiCloneCursor(DetailTable->Handle,false, false, hDetCursor); DbiBeginLinkMode(hMastCursor); DbiBeginLinkMode(hDetCursor); DbiGetIndexDesc(hDetCursor,0,DetIdxDesc); pszMasterExp = DetIdxDesc.szKeyExp; DbiLinkDetailToExp(hMastCursor,hDetCursor,0, pszMasterExp); -------------------------------------------------------------------- Could anyone help me, please? Thanx a lot in advance.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads