I am a beginner in HMG, as I need to migrate an old DOS (yes really a DOS) application to Windows. I want to use HMG because I am too old to learn (nearly 60 now) OO programming and I feel good with old DBase III syntax.
I am using the GRID_25 sample of the HMG 3.4.4 distrib, the code in the demo.prg file was written by Roberto Lopez in 2009, perhaps things have changed a bit since and it was working then, but now when I launch the exe (the compilation works fine) and I click on the last (6th) field, which is a memo field (controlled by the GRID control
Code: Select all
aCtrl_6 := { 'EDITBOX' }
1. I type a sample text and save it
2. When I re-click on the same memo field, the changes seem not to be saved
3. I quit the program and go to view the DBF (TEST.DBF included in the "hmg.3.4.4\SAMPLES\Controls\Grid\GRID_25" folder) using LibreOffice Calc (which can smoothly open DBF files) I can clearly see that my changes HAVE BEEN SAVED
4. I restart the GRID_25\demo.exe and the memo field I modified (and just checked through LO-Calc) seems empty / does not show its contents.
Can someone tell me what I do wrong or what I would need to modify in the 2009 code of the GRID_25 sample to use it now with this version of HMG.
My OS : W10 Pro 64. Compile HMG in 32 bits.
I hope someone of the group can help me.
Another question : is there a book of recent HMG syntax and samples I could buy to teach me all the tricks about the commands and functions ? Samples are good and some pieces of code I find on Internet too but when I face such kind of difficulties I wish I could find a 'bible' of the language to help.
Apologies for any English mistakes, my native language is not English.
Gilles Maisonneuve.
PS: It might be clearer to insert screen copies but as I am a newbie here and don't know the policies about images I dare not doing so, as it might clutter up the site disk space with heavy data.