Delphi clientdataset determines whether the field exists or not

if dxmx.findfield('BYZD6')<>nil then
    begin
      fm.MePlace.EditValue:=dxMx.fieldByname('BYZD6').Value;
      strCFWZ:='BYZD6';
    end
    else if dxmx.findfield('CFWZ')<>nil then
    begin
      fm.MePlace.EditValue:=dxMx.fieldByname('CFWZ').Value;
      strCFWZ:='CFWZ';
    end
    else
      exit;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325494893&siteId=291194637