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

DBFMDX RDD for HMG 3.4.3

Post 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
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: DBFMDX RDD for HMG 3.4.3

Post by mustafa »

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

Re: DBFMDX RDD for HMG 3.4.3

Post 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
Best Regards,
Sam
User avatar
gfilatov
Posts: 1067
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: DBFMDX RDD for HMG 3.4.3

Post 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:
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

Re: DBFMDX RDD for HMG 3.4.3

Post 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
Best Regards,
Sam
samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF

Re: DBFMDX RDD for HMG 3.4.3

Post 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.
Best Regards,
Sam
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: DBFMDX RDD for HMG 3.4.3

Post by mol »

If DBFMDX dbf files format is the same as DBFCDX, you can create new indexes
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: DBFMDX RDD for HMG 3.4.3

Post 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.
samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF

Re: DBFMDX RDD for HMG 3.4.3

Post 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.
Best Regards,
Sam
samba
Posts: 6
Joined: Fri Mar 01, 2019 4:47 pm
DBs Used: DBF

Re: DBFMDX RDD for HMG 3.4.3

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