DBF to FMG ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

DBF to FMG ?

Post by AUGE_OHR »

hi,

did someone wrote a tool to make a FMG from DBF :?:
it must be compatible to HMG IDE to "edit" FMG later.
have fun
Jimmy
User avatar
serge_girard
Posts: 3364
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: DBF to FMG ?

Post by serge_girard »

Maybe Dragan?
There's nothing you can do that can't be done...
User avatar
Anand
Posts: 596
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: DBF to FMG ?

Post by Anand »

AUGE_OHR wrote: Fri Jan 31, 2020 4:30 am did someone wrote a tool to make a FMG from DBF :?:
What is your actual requirement ?

If you want to show a EDIT window with the selected records of the selected DBF, I hope in your NC, then you can find a such code in MiniGUI Extended browser samples (I do not remember the specify sample as of now)

If any other reason, please specify.

Regards,

Anand
Regards,

Anand

Image
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: DBF to FMG ?

Post by AUGE_OHR »

hi,

i`m just too lazy to do make many clicks with Mouse to drop Label / Textbox / Checkbox and fill Property Box in FMG

as FMG Code is generate i like to do same and use DBF as "Layout" ... just from Top to Bottom
later i can use Designer to group Control and make it "nice"
have fun
Jimmy
User avatar
dragancesu
Posts: 931
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: DBF to FMG ?

Post by dragancesu »

https://hmgforum.com/viewtopic.php?f=10&t=4170

https://hmgforum.com/viewtopic.php?f=10&t=6257

I will not say that he hates to knock me, because I saw long ago that many parts of the program can be generated based on some part, in this case dbf structure

Look at the links where you will find the program that will generate you prg based on DBF

I don't like the prg / fmg combination, I only create the prg variant

FMG is a bit different though, I decided on a different DEFINE object variant, which FMG doesn't support
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: DBF to FMG ?

Post by AUGE_OHR »

hi,

thx for Answer.

i have look at those CASE Tool which is the Dream of a Programmer. :D

it include Toolbar with Button to navigate, Statusbar and all "Store / "Replace" Code you need for a App.
even if you don´t know harbour / HMG a User can work with CASE Tool like this, GREAT :!:

---

but i´m not a "normal" User as i want to learn harbour / HMG an how i can make work more easy.
as Newbie i still use FMG for "quick" Layout and get Code which i can use

so i think about FMG from DBF.

Request : FMG "Designer" Button -> DBF -> FIELDs -> place to Form with Label in front

the Idea is that i can open generatet FMG in IDE so i Newbie can work with it.
here is a small Sample
TESTFMG.ZIP
(878 Bytes) Downloaded 102 times
p.s. have include it in HBFM : DBF -> F4 -> F5 -> FMG
https://hmgforum.com/viewtopic.php?f=5&t=6285&start=21
have fun
Jimmy
User avatar
dragancesu
Posts: 931
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: DBF to FMG ?

Post by dragancesu »

Look at the link, simply creating controls that are added to the program via the clipboard
I think it's easy to rewrite to create syntax used by FMG

https://hmgforum.com/viewtopic.php?f=5&t=6122

The program must be written, manually or generated in some way

I prefer to write code because I have full control, in this case PRG, a simple editor is enough
IDE is a good tool but once you go with it then you have to finish it and you don't like it

This example is not good (for beginer), I mean it is not complete as FMG cannot be standalone, it must be followed by PRG

Note : The clipper program is much shorter because many things do not need to be defined
HMG program is a little longer, much needs to be defined, window and other controls
so a program with a table of several fields with all functions has 500+ lines of code,
it takes a long time to write from the beginning, what I don't need is a waste of time
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: DBF to FMG ?

Post by AUGE_OHR »

hi,
dragancesu wrote: Sun Feb 02, 2020 11:34 am Look at the link, simply creating controls that are added to the program via the clipboard
I think it's easy to rewrite to create syntax used by FMG

https://hmgforum.com/viewtopic.php?f=5&t=6122
that look very Interesting.

until now i try to build Tools for working. when start a real Project i need to create many Forms.
so i have to think about a Concept how to create many Form ... without to much work ...

your CASE Tool is a very good Idea. i have to look deeper how i can use it with "my Style" of Programming.
have fun
Jimmy
Post Reply