>Armin,
>
>I still get the same error. Thanks anyway.
>I am using VFP6 if it makes any difference.
>>>THIS.PageFrame1.Page1.Grid1.COLUMN
S(I).CONTROLSOURCE = RIGHT(CSstring, 25)
What is CSstring? Is it a global variable, or a field from the table the grid is sitting on? What is the content of this field/variable? If RIGHT(CSstring, 25) evaluates to a string, that string will have to contain an expression which would be able to stand as a controlsource.
I mean, it is possible that you're getting a wrong error here, simply because the expression doesn't evaluate to a proper controlsource string.
Again, as others have said, check your spelling. The (I) may mean different things, depending on the value of the variable i at the time this code runs, and if i is greater than the number of columns you have, that may well be the reason you're getting the message.