Page 1 of 1

grid problem in hmg 3.4.3

Posted: Mon Mar 06, 2017 6:23 pm
by t57042
This works with hmg 3.3.1 but fails with 3.4.3: bound error array access

Code: Select all

// testt  OK with 3.3.1  Fails with 3.4.3
#include "hmg.ch"
*------------------------------------------------------------------------------*
Function Main
*------------------------------------------------------------------------------*
 
 	Define Window win ;
		At 0,0 ;
		Width 500;
		Height 500;
		Title 'TABLE :  ' ;
		MAIN  
    
    Define Grid Grid_1
			Row 0
			Col 0
			Width 500
			Height 500
		  Headers {""}
		  Widths {0}       
		end Grid   
		
	End Window
 win.grid_1.DeleteColumn(1)
	
	for i =1 to 4
    win.grid_1. AddColumn ( i, "test"+alltrim(str(i)),50 ,BROWSE_JTFY_LEFT )         //headers
	next
	
  win.Center 
	win.Activate 
Return 
Richard

Re: grid problem in hmg 3.4.3

Posted: Mon Mar 06, 2017 9:15 pm
by srvet_claudio
I will check

Re: grid problem in hmg 3.4.3

Posted: Wed Mar 22, 2017 7:14 pm
by t57042
Any idea for a work around?

Re: grid problem in hmg 3.4.3

Posted: Wed Mar 22, 2017 7:58 pm
by KDJ
t57042

HMG.3.4.3 patch 2: viewtopic.php?f=43&t=4738&p=50091#p50091
srvet_claudio wrote: Mon Mar 20, 2017 2:32 am - Fixed bug when call DeleteColumn( 1 ) with a Grid with only one column ( reported by t57042 )

Re: grid problem in hmg 3.4.3

Posted: Thu Mar 23, 2017 9:38 am
by t57042
How to apply a patch? Never did before
richard

Re: grid problem in hmg 3.4.3

Posted: Thu Mar 23, 2017 10:18 am
by edk
t57042 wrote: Thu Mar 23, 2017 9:38 am How to apply a patch? Never did before
richard
1. Download patch: http://hmgforum.com/app.php/page/download
2. Extract all files to hmg 3.4.3 folder (ex c:\hmg.3.4.3) (overwrite old existed files)
3. Run BuildAllLib32.bat

grid problem in hmg 3.4.3

Posted: Thu Mar 23, 2017 10:32 am
by Pablo César
t57042 wrote: Thu Mar 23, 2017 9:38 am How to apply a patch? Never did before
richard
Please read this:

viewtopic.php?p=50218#p50218

Re: grid problem in hmg 3.4.3

Posted: Thu Mar 23, 2017 11:13 pm
by t57042
thanks, patch applied and OK
Richard