Win XP SP3 32-bit, hmg.3.4.1 [after 2 patch] Unicode version, Run oksrvet_claudio wrote: Not work for me in Win XP SP3 32-bit
HMG 3.4.1
Moderator: Rathinagiri
Re: HMG 3.4.1
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
Re: HMG 3.4.1
I had such a problem, when I compiled hmg with ANSI selection (besides, I'm still using ANSI).Roberto Lopez wrote:Sadly, the problem remains.srvet_claudio wrote: this is not an elegant solution, but ...
File: main_query_server_action.prg
Code: Select all
#include "hmg.ch" declare window Main Function main_query_server_action aRecordset := netio_funcexec( "query_001" , Main.Query_String.Value ) Main.Grid_1.DeleteAllItems // <----------------------------------------------------- add this line Main.Grid_1.ItemCount := LEN(aRecordset) Return Nil
My test is as follows:
First query: A (it is Ok)
Second query: B (does not work.) Grabage showns.
Don't worry about this, I'll create an alternate demo, using a standard grid, filling it with additem.
My first attempt was virtual grid, because, it could work very fast even with very large recordsets (NETIO compresses data, so, the recordest size is not a concern).
An important thing to note, is that the problem is not NETIO related, since, the GRID_03 demo is failing the same way here. It starts ok, but when start to move the vertical scroll bar the content of first column become 'X's.
OS: XP SP3 32
Everything looks OK when compiled as UNICODE and used as ANSI.
Strange, but it works!
- dhaine_adp
- Posts: 457
- Joined: Wed Aug 06, 2008 12:22 pm
- Location: Manila, Philippines
Re: HMG 3.4.1
Hello Marek and all,mol wrote: I had such a problem, when I compiled hmg with ANSI selection (besides, I'm still using ANSI).
Everything looks OK when compiled as UNICODE and used as ANSI.
Strange, but it works!
Does it have something to do with the buildlib.bat? When you use the batch file it will always build Unicode library because of this line:
"if %ERRORLEVEL% NEQ 0 goto OP2 ". For me, I've put a remarks symbol in front of it as shown below. Even if you select ANSI the compiled libraries will come out as UNICODE. Please check yours.
Code: Select all
echo. Build HMG Library to support the character set:
echo. -----------------------------------------------
echo.
echo. 1 - ANSI
echo.
echo. 2 - UNICODE
echo.
echo. 0 - Cancel
echo.
echo.
echo.
set /p option=Select an Option [0, 1, 2] (for default: UNICODE):
'if %ERRORLEVEL% NEQ 0 goto OP2
if %option% == 1 goto OP1
if %option% == 2 goto OP2
if %option% == 0 exit
goto MENU
Regards,
Danny
Manila, Philippines
Danny
Manila, Philippines
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.4.1
I've forgot to mention that I'm using ANSI 32 bits version, so the complete test set is:srvet_claudio wrote: Very interesting, I did the same steps that you and both demos works fine for me (Win7 SP1 64-bit)
OS: XP SP3 32 BITS
HMG: 32 BITS ANSI
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG 3.4.1
Roberto, is my idea working for you?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- srvet_claudio
- Posts: 2220
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG 3.4.1
Hi Friends,
please test if this proposal solution by Rathi work for you?
please test if this proposal solution by Rathi work for you?
Rathinagiri wrote:IMHO, you have to reset the size of the virtual grid to 0 before doing any operation.
Kindly check up this:
Code: Select all
#include "hmg.ch" declare window Main Function main_query_server_action Main.Grid_1.ItemCount := 0 // <----------------------------------------------------- add this line Main.Grid_1.disableupdate() aRecordset := netio_funcexec( "query_001" , Main.Query_String.Value ) Main.Grid_1.DeleteAllItems // <----------------------------------------------------- add this line Main.Grid_1.ItemCount := LEN(aRecordset) Main.Grid_1.enableupdate() Return Nil
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.4.1
Rathi, Claudio,
It still not working for me, with the latest suggestions.
It still not working for me, with the latest suggestions.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.4.1
Claudio,
I've rebuilt the apps, with unicode version and it works fine now. So, the problem is limited to ANSI version.
Thanks for your help.
I've rebuilt the apps, with unicode version and it works fine now. So, the problem is limited to ANSI version.
Thanks for your help.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
Re: HMG 3.4.1
As I wrote....
Something is wrong with ANSI compilation
Something is wrong with ANSI compilation
- srvet_claudio
- Posts: 2220
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG 3.4.1
Roberto Lopez wrote:Claudio,
I've rebuilt the apps, with unicode version and it works fine now. So, the problem is limited to ANSI version.
Thanks for your help.
Marek and Roberto,mol wrote:As I wrote....
Something is wrong with ANSI compilation
you are right, the problem is in ANSI, I will have to revise the code.