Page 4 of 15
Re: edit extended
Posted: Sun Jul 08, 2012 8:46 pm
by t57042
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
Re: edit extended
Posted: Sun Jul 08, 2012 8:51 pm
by esgici
t57042 wrote:With version 3.0.41 the build process works with IDE and with batch file.
And now does everything is OK ?
--
Esgici
Re: edit extended
Posted: Sun Jul 08, 2012 9:05 pm
by t57042
With build 3.0.41 everything ok.
With build 3.0.28 it does not work.
Richard
Re: edit extended
Posted: Sun Jul 08, 2012 9:06 pm
by esgici
Why 3.028 ?
--
Esgici
Re: edit extended
Posted: Sun Jul 08, 2012 9:11 pm
by esgici
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
Where is the code for the EDIT WORKAREA CLIENTES?
Posted: Sat Sep 15, 2012 8:15 am
by metron9
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.
Re: Where is the code for the EDIT WORKAREA CLIENTES?
Posted: Sat Sep 15, 2012 11:02 am
by esgici
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

Re: Where is the code for the EDIT WORKAREA CLIENTES?
Posted: Sat Sep 15, 2012 4:00 pm
by metron9
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....
recordlocking
Posted: Thu Nov 15, 2012 3:01 pm
by t57042
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
Re: recordlocking
Posted: Thu Nov 15, 2012 3:17 pm
by esgici
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