Author | Topic: CDXDBF | |
---|---|---|
Jorge | CDXDBF on Mon, 07 Jul 2008 12:27:05 -0300 can anybody tellme if this definition generate indexes 101% compatible with clipper 5.2 dbeSetDefault( 'DBFCDX' ) i :=dbeInfo( COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX ) regards | |
Clayton Jones | Re: CDXDBF on Thu, 10 Jul 2008 08:10:03 -0400 Hello Jorge, >can anybody tellme if this definition generate indexes 101% compatible with >clipper 5.2 > dbeSetDefault( 'DBFCDX' ) > dbeInfo( COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX ) I'm not sure about 101% but this does create index files compatible with Clipper 5. The main thing is this line creates CDX index files without an internal collation table. This DBFCDX configuration will still use Clipper DBFs with DBT memo files. If the full Comix RDD is needed (FPT memo files) the DBF side of the DBE must also be configured. This requires two more lines dbeinfo(COMPONENT_DATA,FOXDBE_LOCKMODE,FOXDBE_LOCKMODE_2X) dbeinfo(COMPONENT_DATA,FOXDBE_CREATE_2X,.T.) These lines set the lockmode and make it create DBF files with the proper signature byte and FPT memo files. This combination is Fox 2x compatible. Here is the full code to set this up ******** FOX Data Component IF ! DbeLoad( "FOXDBE", .T.) hidden MsgBox("Database engine FOXDBE not loaded") ENDIF ************** CDX Order Component IF ! DbeLoad( "CDXDBE",.T.) hidden Msgbox("Database engine CDXDBE not loaded") ENDIF ******* Build FOX/CDX engine IF ! DbeBuild( "FOXCDX", "FOXDBE", "CDXDBE" ) MsgBox("FOXCDX database engine could not be created") ENDIF dbeSetDefault("FOXCDX") ******* Configure for Clipper/Comix dbeInfo( COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX ) dbeinfo(COMPONENT_DATA,FOXDBE_LOCKMODE,FOXDBE_LOCKMODE_2X) dbeinfo(COMPONENT_DATA,FOXDBE_CREATE_2X,.T.) I hope this helps. Regards, Clayton Clayton Jones www.cjcom.net Top-Down Library for Xbase++ X-DBU Database Utility X-MEMO Memo Field Replacement | |
Jorge | Re: CDXDBF on Thu, 10 Jul 2008 12:49:20 -0300 many thanks to aditional info to respect to create a dbf compatible, i define the dbe DBFNTX regards "Clayton Jones" <topdown@cjcom.net> escribi en el mensaje news:b3tb7496tded9ucc7cm7t1uma3e91upvoc@4ax.com... > Hello Jorge, > >>can anybody tellme if this definition generate indexes 101% compatible >>with >>clipper 5.2 >> dbeSetDefault( 'DBFCDX' ) >> dbeInfo( COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX ) > > I'm not sure about 101% but this does create index files compatible > with Clipper 5. The main thing is this line creates CDX index files > without an internal collation table. This DBFCDX configuration will > still use Clipper DBFs with DBT memo files. > > If the full Comix RDD is needed (FPT memo files) the DBF side of the > DBE must also be configured. This requires two more lines > > dbeinfo(COMPONENT_DATA,FOXDBE_LOCKMODE,FOXDBE_LOCKMODE_2X) > dbeinfo(COMPONENT_DATA,FOXDBE_CREATE_2X,.T.) > > These lines set the lockmode and make it create DBF files with the > proper signature byte and FPT memo files. This combination is Fox 2x > compatible. Here is the full code to set this up > > ******** FOX Data Component > IF ! DbeLoad( "FOXDBE", .T.) hidden > MsgBox("Database engine FOXDBE not loaded") > ENDIF > > ************** CDX Order Component > IF ! DbeLoad( "CDXDBE",.T.) hidden > Msgbox("Database engine CDXDBE not loaded") > ENDIF > > ******* Build FOX/CDX engine > IF ! DbeBuild( "FOXCDX", "FOXDBE", "CDXDBE" ) > MsgBox("FOXCDX database engine could not be created") > ENDIF > > dbeSetDefault("FOXCDX") > > ******* Configure for Clipper/Comix > dbeInfo( COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX ) > dbeinfo(COMPONENT_DATA,FOXDBE_LOCKMODE,FOXDBE_LOCKMODE_2X) > dbeinfo(COMPONENT_DATA,FOXDBE_CREATE_2X,.T.) > > I hope this helps. > > > Regards, > Clayton > > Clayton Jones www.cjcom.net > Top-Down Library for Xbase++ > X-DBU Database Utility > X-MEMO Memo Field Replacement > |