> I probably don't fully understand your purpose.
>
> fkInternalcalc fields are stored in dataset record buffer. The purpose of
> fkInternalCalc fields is to store field values which are not fetched from
> database. Because of that oninternalcalcfields is only called in
> checkbrowsemode() if the record has been edited.
> fkCalculated fields are not stored in record buffer but stored in the edit
> buffer only.
> fkInternalCalc fields are writable by direct data access so one can use
> "
> <tmsebufdataset>.currentas*[<thefield>,-1]:= <thevalue>;
> "
> to set the field value of the current record without beeing in edit mode. Ex.:
> "
> dataset1.currentasinteger[dataset1.fieldbyname('unitdef'),-1]:=
> dataset2.fieldbyname('defunit').asinteger;
> "
My purpose is like create master-detail recordset. After master is
scrolled, I want to put calculated value from detail to master field
(with fkinternalcalc option). But my problem, if detail has 10
records, the value from detail recordset is only from first row, as my
code above.
> Hint: better use field components instead of fieldbyname().
>
I know that but I should replace all my code with "replace all" to change them.
Thanks
_______________________________________________
MSEide-MSEgui-talk mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk