DBFMDX RDD for HMG 3.4.3

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF
Has thanked: 3 times

DBFMDX RDD for HMG 3.4.3

Post by samba » Wed Mar 06, 2019 10:42 am

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

User avatar
mustafa
Posts: 807
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Been thanked: 115 times
Contact:

Post by mustafa » Wed Mar 06, 2019 11:51 am

Hi samba
View

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

Regards
Mustafa

samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF
Has thanked: 3 times

Post by samba » Wed Mar 06, 2019 12:18 pm

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
Best Regards,
Sam

User avatar
gfilatov
Posts: 623
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 22 times
Been thanked: 190 times
Contact:

Post by gfilatov » Wed Mar 06, 2019 1:28 pm

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:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF
Has thanked: 3 times

Post by samba » Sat Mar 09, 2019 7:22 am

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
Best Regards,
Sam

samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF
Has thanked: 3 times

Post by samba » Tue Mar 12, 2019 6:33 am

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.
Best Regards,
Sam

User avatar
mol
Posts: 3170
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 202 times
Been thanked: 107 times
Contact:

Post by mol » Tue Mar 12, 2019 6:51 am

If DBFMDX dbf files format is the same as DBFCDX, you can create new indexes

User avatar
dragancesu
Posts: 646
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 19 times
Been thanked: 127 times

Post by dragancesu » 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.

samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF
Has thanked: 3 times

Post by samba » Wed Mar 13, 2019 11:28 am

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.
Best Regards,
Sam

samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF
Has thanked: 3 times

Post by samba » Wed Mar 13, 2019 11:33 am

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.
Best Regards,
Sam

Post Reply