Edit Extended / Edit WorkArea - ABM / ABM2

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Re: edit extended

Post by t57042 » Sun Jul 08, 2012 8:46 pm

The problem is really the HMG version - With version 3.0.41 the build process works with IDE and with batch file.

With 3.0.28 with the batch file it doesn't compile (undefined reference to `HB_FUN_RABM2)
and building with the IDEthe computer blocks (telling 'building..' forever).

Richard

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

Post by esgici » Sun Jul 08, 2012 8:51 pm

t57042 wrote:With version 3.0.41 the build process works with IDE and with batch file.
And now does everything is OK ?

--

Esgici
Viva INTERNATIONAL HMG :D

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Sun Jul 08, 2012 9:05 pm

With build 3.0.41 everything ok.
With build 3.0.28 it does not work.

Richard

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

Post by esgici » Sun Jul 08, 2012 9:06 pm

Why 3.028 ?

--

Esgici
Viva INTERNATIONAL HMG :D

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

Post by esgici » Sun Jul 08, 2012 9:11 pm

Now, just downloaded and installed 3.0.28:

With IDE, no problem.

With .bat file, require a little modification :

call c:\hmg.3.0.28\build.bat EdRExDemo.hbp

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

Post by metron9 » Sat Sep 15, 2012 8:15 am

Hi, My very first post here.

I am going through the DEMOS and most of the code i understand however the EDIT.1 demo
has an ACTION EDIT WORKAREA CLIENTES

this brings up a screen full of buttons and allows editing of data.

Where is the code or information for this EDIT command?

I am not understanding how the window is built with all the buttons, can it be modified?

Also not understanding CDX file is this just a different format than the DBF file.

Thank you.

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

Post by esgici » Sat Sep 15, 2012 11:02 am

Hi Metron9, welcome aboard :)
metron9 wrote: I am going through the DEMOS ...
This is a good way to learn HMG, samples are primary knowledge base for all HMG users.
Where is the code or information for this EDIT command?
EDIT command defined as a pre-processor directive in <hmg>\INCLUDE\i_edit.ch

This directive call ABM() function and it is in <hmg>\SOURCE\EDIT\h_edit.prg.

Edit window and its controls included buttons, are defined in this .prg file.

( <hmg> denotes HMG root folder. )
can it be modified?
Since HMG is an open source project, yes you can modify all source. But this isn't a good way. Because after modification you will need re-building whole HMG library for see results of modifications. Plus, for every modification you will repeat this process. Moreover, when you install a new version of HMG, you have re-make all your modifications.

IMHO good way is : borrow all necessary source code from HMG and build your own source modules with different names. Include these module into you project and use any way you like.
Also not understanding CDX file is this just a different format than the DBF file.
.cdx isn't a table (DBF) file extention, it is for index files with different structure / format than .ntx files, introduced by ForPro.

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D

User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

Post by metron9 » Sat Sep 15, 2012 4:00 pm

Oh I see now, I followed the linked include files starting at HMG.ch

Yes I was interested in making my own code from studying the edit code.

I see now the EDIT function definition is in the Minigui help file.

Very good help, thank you. I am on my way.

I will post my background in the introduction forum soon. (goes back to programming games for Commodore on the C64 my second computer.) so it may run a tad long....

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Thu Nov 15, 2012 3:01 pm

Hi all,

When a file is opened shared in 2 different processes with the (obsolete) browse command, there is automatic
recordlocking when trying to edit the same record.
This is not the case with EDIT or EDIT EXTENDED.

Is there a possibility to modify this?

Thanks
Richard

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

Post by esgici » Thu Nov 15, 2012 3:17 pm

Hi Richard
t57042 wrote:Is there a possibility to modify this?
EDIT.1, EDIT.2 and EDIT EXTENDED are samples; not controls or functions of HMG.

So, you can modify theme with any way you want; including USE SHARE and file/record-lock wherever you like.

Regards
Viva INTERNATIONAL HMG :D

Post Reply