I have so much to learn. Recent problem is failure to read contents of a GRID that has been loaded with numbers
I have tried the following code to GET the values off the grid but they return Nils even though I can see the real
values by clicking on the cells.
The grid and the code to read values are shown below. As you can see I have tried different ways for b and c to no avail.
cimage is the name of an image control like cImage:="ImageNo"+str(nImageNo,1)
Thanks for looking at my post
b:= setproperty("Win_2",cImage,"row",Getproperty("Full_Composite_Image","Grid_Assignment","value(nI,3)"))
c:= setproperty("Win_2",cImage,"col",Getproperty("Full_Composite_Image","Grid_Assignment","cellex(nI,3)"))
msgdebug("What is the values of a and b",a,b) // returns NIl,Nil
DEFINE GRID Grid_Assignment
ROW 120
COL 230
WIDTH 290
HEIGHT 340
VALUE Nil
WIDTHS {40,55,55,70,70 }
HEADERS {"Img","Row","Col","Width","Height"}
FONTNAME "Arial"
FONTSIZE 11
TOOLTIP ""
ONCHANGE Nil
ONGOTFOCUS Nil
ONLOSTFOCUS Nil
FONTBOLD .T.
ONDBLCLICK Nil
MULTISELECT .F.
ALLOWEDIT .T.
VIRTUAL .F.
DYNAMICBACKCOLOR Nil
DYNAMICFORECOLOR Nil
COLUMNWHEN Nil
COLUMNVALID Nil
COLUMNCONTROLS Nil
SHOWHEADERS .T.
CELLNAVIGATION .T.
NOLINES .F.
HELPID Nil
IMAGE Nil
JUSTIFY Nil
ITEMCOUNT MAXIMAGES
BACKCOLOR {192,192,192}
FONTCOLOR {0,193,97}
HEADERIMAGES Nil
ROWSOURCE Nil
COLUMNFIELDS Nil
ALLOWAPPEND .F.
ALLOWDELETE .F.
BUFFERED .F.
DYNAMICDISPLAY Nil
ONSAVE Nil
LOCKCOLUMNS 0
END GRID