Page 1 of 1

GetGridcellValue/SetGridCellValue problems

Posted: Sat Feb 13, 2010 8:30 am
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

Re: GetGridcellValue/SetGridCellValue problems

Posted: Sat Feb 13, 2010 10:48 am
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

Re: GetGridcellValue/SetGridCellValue problems

Posted: Sat Feb 13, 2010 1:32 pm
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.

Re: GetGridcellValue/SetGridCellValue problems

Posted: Sun Feb 14, 2010 10:08 am
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.