>Hi,
>
>I am trying to use save the current settings of my grid. I have a variable is a string with the value:
>
>temp = "thisform.MyGrid.Column(1).width
>
>I am trying to save the current widths in an array so that I can re-assign them later.
>The code looks like:
>
> Dimension Colwidth(20)
> colwidth(1) = evaluate(temp)
>
>But evaluate(temp) does not work. How can I assign the column width to the array?
oGrid = thisform.MyGrid
nColcount = oGrid.ColumnCount
i = 0
DECLARE colwidth[1]
FOR EACH oColumn IN oGrid.Columns
i=i+1
DECLARE colwidth[i]
colwidth[i] = oColumn.Width
ENDFOR
oGrid = NULL