Page 2 of 3

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 12:34 am
by Rathinagiri
Thanks a lot Roberto.

Sudip, go to bed early in the night not early in the morning. :)

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 4:45 am
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 265 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

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 7:21 am
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)

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 7:28 am
by mol
I've compiled this sample by hmg test XIV - error occurs, too
Version XIII - everything looks OK.

Marek

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 12:52 pm
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

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 1:14 pm
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

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 1:48 pm
by Rathinagiri
Thanks for the explanation Esgici.

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 2:21 pm
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.

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 2:24 pm
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.

Re: HMG 3.0 FORUM TEST XV

Posted: Wed Jan 13, 2010 2:32 pm
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.