New DBA Feature

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

Post Reply
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

New DBA Feature

Post by Vanguarda » Sat Apr 17, 2010 5:39 pm

Hi my friends,

At first forgive me for my absence from the forum.

OFF --
Currently i work in other city, so i have make trip of 130 Km for my job. Round trip.
I have wake up 4:30 for get in my job 7:40. And at the end of the day I get home at around 20:30.
But, the better part is that now i work only (x)harbour. :D
ENDOFF --


Well, in this topic our friend Esgici have posted your amazing code of DBA.
viewtopic.php?f=10&t=42&p=9648&hilit=dba#p9648
So I've add a little function.
Now DBA be able to export the table estructure for a PRG file, already creating a function for make this table. Please see bellow a file created with this function.

The function was add in "TOOLS" -> "Export to PRG" menu. it is very useful for me. I hope that be useful for you too.
The functions write in "DBATools.PRG". Function name "Export2Prg"

Code: Select all

//Created by HMG Data Base Assistant v.5.4.13 (13.04.2010-23:13:59)
//Under structure of TEST.DBF

Function _Create_TEST()
     Local aStructure := {;
                         { "CODE"       ,  "N"  ,   10   ,   0    },;
                         { "FIRST"      ,  "C"  ,   30   ,   0    },;
                         { "LAST"       ,  "C"  ,   30   ,   0    },;
                         { "BIRTH"      ,  "D"  ,   8    ,   0    },;
                         { "MARRIED"    ,  "L"  ,   1    ,   0    },;
                         { "BIO"        ,  "M"  ,   10   ,   0    };
                         }
     DBCreate( "TEST.DBF" , aStructure )

Return Nil 
PS: Please sorry my bad english

My best regards,
Attachments
DBASource_NEW.rar
(959.7 KiB) Downloaded 3780 times
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/

JALMAG
Posts: 169
Joined: Sun Jan 10, 2010 7:05 pm

Post by JALMAG » Sat Apr 17, 2010 6:43 pm

Gracias Vanguarda.
Un cordial saludo.

User avatar
esgici
Posts: 4363
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 245 times
Been thanked: 91 times
Contact:

Post by esgici » Sat Apr 17, 2010 7:22 pm

Gracias Paulo

For first your interest, second cooperation :)

This new feature is very good, surely xBase programmer will like it :)

I'm waiting for your new contributions.

For example :

Code: Select all

   Tools 
     ...
     Export to :
        prg
        xls
        mdb
        etc ...
and than, of course :

Code: Select all

   Tools 
     ...
     Import from :
        xls
        mdb
        etc ...

And, (more important for me) translation to your own language for making DBA multi-language.

Saludos, regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
Rathinagiri
Posts: 5181
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 141 times
Been thanked: 131 times
Contact:

Post by Rathinagiri » Sat Apr 17, 2010 8:11 pm

Great contribution.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Post by Vanguarda » Sat Apr 17, 2010 9:37 pm

esgici wrote:Gracias Paulo

For first your interest, second cooperation :)

This new feature is very good, surely xBase programmer will like it :)

I'm waiting for your new contributions.
...
Esgici
Hi friends,

Esgici, thanks for your kind words.
I'll make more contributions ASAP.

My best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/

User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Post by Vanguarda » Sat Apr 17, 2010 9:38 pm

rathinagiri wrote:Great contribution.
Thanks My friend.

My best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/

User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Post by Vanguarda » Sat Apr 17, 2010 9:38 pm

JALMAG wrote:Gracias Vanguarda.
Un cordial saludo.
Thanks my friend.

My best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/

Post Reply