提示“[FireDAC][DApt]-402.Operation cannot be performed without assigned SelectCommand”
代码如下:
var lStream:TMemoryStream;
i:integer;
begin
i:=1;
try
mtTheCs.Edit;
mtTheCs.FieldByName('cs_name').Value := edit2.Text;
mtTheCs.FieldByName('ordid').Value :=strtoint(edit3.Text);
mtTheCs.FieldByName('inuse').Value := Checkbox1.IsChecked;
mtTheCs.Post;
i:=2;
lstream:=TMEmorystream.Create;
FDSchemaAdapter1.ResourceOptions.StoreItems :=[siDelta,siMeta] ;
FDSchemaAdapter1.SaveToStream(lStream,TFDStorageFormat.sfBinary );
i:=3;
lstream.Position :=0;
spPostTheCs.Params[0].AsStream :=lStream;
spPostTheCs.ExecProc ;
==========
请高手指教问题出在哪里了?