Page 1 of 2

DBFMDX RDD for HMG 3.4.3

Posted: Wed Mar 06, 2019 10:42 am
by samba
Greetings everyone!

I had used Clipper 5.2e way back in the 1990s, and stumbled upon HMG about a couple of years ago. I am totally a novice as far as HMG is concerned.

I installed HMG 3.4.3 on a Windows 10 64-bit machine and am working on a simple application to open a DBF with MDX index which will be the rowsource for a Grid. The following lines in my code generate errors decribed below:
1) Declaration section: REQUEST DBFMDX -> Linker .. undefined reference to `DBFMDX`
2) Main.prg: RDDSETDEFAULT("DBFMDX") -> Linker Error: Referenced, missing but unknown function DBFMDX(

I am aware that in Clipper 5.2e I have to link DBFMDX.lib when I issue the REQUEST DBFMDX statement and set DBFMDX as the Default RDD . How do I do the same under HMG 3.4.3 ? It appears that HMG has native support only for DBFNTX. Where can I find the DBFMDX RDD compatible with HMG 3.4.3 ?

Would greatly appreciate any guidance or help in this regard. Many thanks in advance.

Best Regards,
Sam

Re: DBFMDX RDD for HMG 3.4.3

Posted: Wed Mar 06, 2019 11:51 am
by mustafa
Hi samba
View

REQUEST DBFCDX , DBFFPT , DBFDBT
RDDSETDEFAULT( "DBFCDX" )

Regards
Mustafa

Re: DBFMDX RDD for HMG 3.4.3

Posted: Wed Mar 06, 2019 12:18 pm
by samba
Hi Mustafa,

Thanks for your quick response. I am looking for DBFMDX. Anyway, are these libraries already in the HMG ? Don't I need to link these libraries explicitly ?

Best Regards,
Sam

Re: DBFMDX RDD for HMG 3.4.3

Posted: Wed Mar 06, 2019 1:28 pm
by gfilatov
samba wrote: Wed Mar 06, 2019 12:18 pm ...
I am looking for DBFMDX. Anyway, are these libraries already in the HMG ? Don't I need to link these libraries explicitly ?
Hi Sam,

Please take a look for the following message from Harbour guru Przemek Czerpak at
https://groups.google.com/forum/?fromgr ... WpotPVxnEJ

The short version is:
Harbour has never supported MDX index format.
:shock:

Re: DBFMDX RDD for HMG 3.4.3

Posted: Sat Mar 09, 2019 7:22 am
by samba
Hi Grigory ,

Thanks for the link and the clarification that Harbour does not support DBFMDX.

Is there any way I can create a HMG compatible DBFMDX driver file (.a file) from the DBFMDX.LIB found in Clipper 5.2e ? Or are there any third party ones available as far as you know ?

Best Regards,
Sam

Re: DBFMDX RDD for HMG 3.4.3

Posted: Tue Mar 12, 2019 6:33 am
by samba
Hi Everyone,

I understand that there is no native support in Harbour & HMG natively for MDX index format. Is there any possibility at all of using MDX index in HMG - may be by using any third party driver ? Would appreciate any guidance.

Re: DBFMDX RDD for HMG 3.4.3

Posted: Tue Mar 12, 2019 6:51 am
by mol
If DBFMDX dbf files format is the same as DBFCDX, you can create new indexes

Re: DBFMDX RDD for HMG 3.4.3

Posted: Tue Mar 12, 2019 7:52 am
by dragancesu
It's dBase IV

Wikipedia say:
dBase uses .ndx files for single indexes, and .mdx (multiple-index) files for holding between 1 and 48 indexes. Some xBase languages such as VP-Info include compatibility with .ndx files while others use different file formats such as .ntx used by Clipper and .idx/.cdx used by FoxPro or FlagShip. Later iterations of Clipper included drivers for .ndx, .mdx, .idx and .cdx indexes.

Re: DBFMDX RDD for HMG 3.4.3

Posted: Wed Mar 13, 2019 11:28 am
by samba
mol wrote: Tue Mar 12, 2019 6:51 am If DBFMDX dbf files format is the same as DBFCDX, you can create new indexes
Thanks. I can do that. But the DBF and MDX files belong to an application not under my control; I want to use those DBF files in my HMG application and ensure that the related MDX index files are open & updated right away if any key column value is modified in my application. That's why I am looking for DBFMDX driver.

Re: DBFMDX RDD for HMG 3.4.3

Posted: Wed Mar 13, 2019 11:33 am
by samba
dragancesu wrote: Tue Mar 12, 2019 7:52 am It's dBase IV

Wikipedia say:
dBase uses .ndx files for single indexes, and .mdx (multiple-index) files for holding between 1 and 48 indexes. Some xBase languages such as VP-Info include compatibility with .ndx files while others use different file formats such as .ntx used by Clipper and .idx/.cdx used by FoxPro or FlagShip. Later iterations of Clipper included drivers for .ndx, .mdx, .idx and .cdx indexes.
Thanks. Yes, indeed Clipper 5.2e (for example) did come with .mdx driver. But this driver has not been ported to Harbour / HMG. I have been searching if DBFMDX.LIB included in Clipper 5.2e could somehow be converted to LIBXXXX.A compatible with HMG, but no success so far.