Issue of TkbmMWBindingDatasetNavigator.SetValue

Home Forums kbmMW Issue of TkbmMWBindingDatasetNavigator.SetValue

Viewing 0 reply threads
  • Author
    Posts
    • #54782
      TomYU
      Participant

      hi

      kbmMW 5.11 fixed:

      procedure TkbmMWBindingDatasetNavigator.SetValue(const AName:string; const AValue:TValue);
      var
      fld:TField;
      begin
      if IsValid then
      begin
      fld:=FDataset.FindField(AName);
      if fld<>nil then
      begin
      if not (FDataset.State in [dsInsert,dsEdit]) then//+++
      FDataSet.Edit;//+++

      fld.AsVariant:=TkbmMWRTTI.ConvertValue2Variant(AValue,nil);
      end;
      end;
      end;

      • This topic was modified 1 week, 4 days ago by TomYU.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.