HMG 3.0 FORUM TEST XV

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0 FORUM TEST XV

Post by Rathinagiri »

Thanks a lot Roberto.

Sudip, go to bed early in the night not early in the morning. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HMG 3.0 FORUM TEST XV

Post by sudip »

Thanks Friend Rathi :)

Hello Master Roberto,

Today I recompiled h_grid.prg (after changing _HMG_INPLACEEDIT return codes and changing path in MAKEHMG.BAT to my hmg installation path, ie., C:\HMGG300).

But, I again I found problem with my existing project, which I sent to you. I assume may be I compiled the HMG source code wrongly. :)

Code: Select all

Date:13/01/2010 Time: 10:06:31
Error BASE/1066 Argument error: conditional

Called from _HMG_GRIDINPLACEKBDEDIT_2(1722)
Called from EVENTS(1735)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4560)
Called from DOMETHOD(7277)
Called from ATTEN(17)
Called from (b)MAIN(86)
Called from _DOCONTROLEVENTPROCEDURE(4872)
Called from EVENTS(1328)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4514)
Called from MAIN(108) 
Now, I am sending a small sample also:
DynamicColor.zip
(2.49 KiB) Downloaded 266 times
Please select 2nd column and select a value from the comobox. Now go to another row. Then press enter or dbl-click on the 1st column.

Thanks in advance. :)

With best regards.

Sudip
With best regards,
Sudip
User avatar
mol
Posts: 3805
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.0 FORUM TEST XV

Post by mol »

I've got an error while trying to refresh grid in my project:
Date:2010.01.13 Time: 08:13:58
Error BASE/1068 Incorrect argument: Incorrect number of arguments
Called from DATAGRIDREFRESH(2083)
Called from _REFRESH(3639)
Called from DOMETHOD(7357)
Called from POTWIERDZPOZYCJEBUFORAAKORDU(4159)
line 4159: in POTWIERDZPOZYCJEBUFORAAKORDU is calling grid.refresh method

Marek
ps.
to test it, I've modified hmg\samples\grid.02\demo.prg by adding menuitem "Grid Refresh" in main menu and error occurs, too:

Code: Select all

/*
* MiniGUI Virtual Grid Demo
* (c) 2003 Roberto Lopez
*/

#include "minigui.ch"

* When using virtual Grids you must avoid to use Item property and additem 
* method. It can generate unexpected results.

Function Main

	DEFINE WINDOW Form_1 ;
		AT 0,0 ;
		WIDTH 450 ;
		HEIGHT 400 ;
		TITLE 'Hello World!' ;
		MAIN 

		DEFINE MAIN MENU
			DEFINE POPUP 'File'
				MENUITEM 'Change ItemCount' ACTION Form_1.Grid_1.ItemCount := Val(InputBox('New Value','Change ItemCount'))
				MENUITEM 'Refresh grid' ACTION Form_1.Grid_1.Refresh
			END POPUP
		END MENU

		@ 10,10 GRID Grid_1 ;
		WIDTH 400 ;
		HEIGHT 330 ;
		HEADERS {'Column 1','Column 2','Column 3'} ;
		WIDTHS {140,140,140};
		VIRTUAL ;
		ITEMCOUNT 100000000 ;
		ON QUERYDATA QueryTest() 

	END WINDOW

	CENTER WINDOW Form_1

	ACTIVATE WINDOW Form_1

Return

Procedure QueryTest()

	This.QueryData := Str ( This.QueryRowIndex ) + ',' + Str ( This.QueryColIndex )

Return
Here is errorlog:
Harbour MiniGui Errorlog File

------------------------------------
Date:01/13/10 Time: 08:19:58
Error BASE/1068 Argument error: array access
Called from DATAGRIDREFRESH(2083)
Called from _REFRESH(3639)
Called from DOMETHOD(7357)
Called from (b)MAIN(23)
Called from _DOCONTROLEVENTPROCEDURE(4872)
Called from EVENTS(1328)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4514)
Called from MAIN(40)
User avatar
mol
Posts: 3805
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.0 FORUM TEST XV

Post by mol »

I've compiled this sample by hmg test XIV - error occurs, too
Version XIII - everything looks OK.

Marek
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0 FORUM TEST XV

Post by Rathinagiri »

Hi,

I have a peculiar error. :)

While using HMG IDE, if our source code contains an array variable named "lines" and if you assign some value to the array, it gives compilation error, "E0022 Invalid lvalue String"

Add these lines in any of your code and try to compile.

Code: Select all

local lines := {}
aadd(lines,1)
lines[1] := 5
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.0 FORUM TEST XV

Post by esgici »

Hi Rathi

AFAIK "LINES" is a reserved word for Browse and Grid.

So, you don't have use it as an identifier, IMHO.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0 FORUM TEST XV

Post by Rathinagiri »

Thanks for the explanation Esgici.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0 FORUM TEST XV

Post by Roberto Lopez »

sudip wrote: Today I recompiled h_grid.prg (after changing _HMG_INPLACEEDIT return codes and changing path in MAKEHMG.BAT to my hmg installation path, ie., C:\HMGG300).

But, I again I found problem with my existing project, which I sent to you. I assume may be I compiled the HMG source code wrongly. :)
Ok.

I'll check it ASAP.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0 FORUM TEST XV

Post by Roberto Lopez »

mol wrote:I've got an error while trying to refresh grid in my project:
Thanks for the report Marek.

I'm working on it.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0 FORUM TEST XV

Post by Roberto Lopez »

rathinagiri wrote:Hi,

I have a peculiar error. :)

While using HMG IDE, if our source code contains an array variable named "lines" and if you assign some value to the array, it gives compilation error, "E0022 Invalid lvalue String"

Add these lines in any of your code and try to compile.

Code: Select all

local lines := {}
aadd(lines,1)
lines[1] := 5

In 'i_graph.ch' we have the following definition:

Code: Select all

#define LINES     2
That is the problem.

Maybe we should change the DRAW GRAPH definition to 'hardcoded' graph type into command itself, since 'bars', 'lines' and 'points' are could be used as variable names by anyone.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply