GetGridcellValue/SetGridCellValue problems

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
karweru
Posts: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

GetGridcellValue/SetGridCellValue problems

Post by karweru »

Hello Friends,

I have just upgraded a program i last compiled with hmg3_test_13 to hm3.0.20 final release and now i get the following error;
Date:13-02-2010 Time: 10:33:16
Error BASE/1069 Argument error: array assign

Called from _HMG_SETGRIDCELLVALUE(1471)
Called from SETPROPERTY(6768)
Called from TGRID:SETGRIDCELLVALUE(207)
The same exact code runs smoothly when compiled with test_13. The lines in my program that generate this error are;

getProperty(cWindowName,cControlName,"cell",nRow,nCol)
setProperty(cWindowName,cControlName,"cell",nRow,nCol,xValue)

It would appear that _getValue(....) function is returning a null. I'll test with the releases inbetween 13 and 20 but any ideas would be highly appreciated.

Thanks
Kind regards,
Gilbert.
User avatar
raumi75
Posts: 135
Joined: Wed Dec 17, 2008 2:31 am
Location: Lünen, Germany
Contact:

Re: GetGridcellValue/SetGridCellValue problems

Post by raumi75 »

karweru wrote: It would appear that _getValue(....) function is returning a null.
Thanks
It get a similar error. I could only reproduce the error when I used PGRDD. (See my earlier post about RLOCK and PGRDD)

Are you using regular dbf-files?

Raumi
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: GetGridcellValue/SetGridCellValue problems

Post by Roberto Lopez »

karweru wrote:Hello Friends,

I have just upgraded a program i last compiled with hmg3_test_13 to hm3.0.20 final release and now i get the following error;
Date:13-02-2010 Time: 10:33:16
Error BASE/1069 Argument error: array assign

Called from _HMG_SETGRIDCELLVALUE(1471)
Called from SETPROPERTY(6768)
Called from TGRID:SETGRIDCELLVALUE(207)
The same exact code runs smoothly when compiled with test_13. The lines in my program that generate this error are;

getProperty(cWindowName,cControlName,"cell",nRow,nCol)
setProperty(cWindowName,cControlName,"cell",nRow,nCol,xValue)

It would appear that _getValue(....) function is returning a null. I'll test with the releases inbetween 13 and 20 but any ideas would be highly appreciated.

Thanks
Please, post a complete sample showing the problem, so I could analyze it.

TIA.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
karweru
Posts: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

Re: GetGridcellValue/SetGridCellValue problems

Post by karweru »

Sorry friends. I found the error I was making. I had passed the virtual parameter (of _definegrid function) a code block value.
Thanks for your time and attention.
Kind regards,
Gilbert.
Post Reply