Hi Fabian,
instead of using several interactivechange methods with same code you could try it with bindevent().
In case your grid is an individual class add a method called 'CalculateSum'
in grid.init, otherwise add this method i.e. to your form. Then you bind all needed textboxes like this:
BINDEVENT(Thisform.Grid1.Column3.Text1,[LostFocus],Thisform.Grid1,[CalculateSum])
BINDEVENT(Thisform.Grid1.Column4.Text1,[LostFocus],Thisform.Grid1,[CalculateSum])
BINDEVENT(Thisform.Grid1.Column5.Text1,[LostFocus],Thisform.Grid1,[CalculateSum])
BINDEVENT(Thisform.Grid1.Column6.Text1,[LostFocus],Thisform.Grid1,[CalculateSum])
Then within your Method 'CalculateSum' all you have to do is calculate the cursor's field values and write back into the cursor's target field and don't use the textbox values for calculation.
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011