I have values stored in xml and lua code and accessing object\'s properties through RTTI.
var
o, v: TValue; // o is current object
a: TStringDynArray; // par
Here's the simplest example I can think off to get and set the values from a string grid using RTTI:
var
ctx: TRttiContext;
rttitype: TRttiType;
rttiprop: TRttiIndexedProperty;
value: TValue;
....
rttitype := ctx.GetType(StringGrid1.ClassType);
rttiprop := rttitype.GetIndexedProperty('Cells');
value := rttiprop.GetValue(StringGrid1, [1, 1]);
rttiprop.SetValue(StringGrid1, [1, 1], value.ToString + ' hello');
I excised the error checking for the sake of simplicity. I'm going to assume that you already know how to check for errors.