Home > Back-end >  How do you write the Delphi code into c #
How do you write the Delphi code into c #

Time:09-26

Procedure TPP_SamplePlanFrm. BtnCanClick (Sender: TObject);
The begin
Inherited;
If qryDetail. IsEmpty then Exit;
If not (qryDetail. State in [dsEdit dsInsert]) then qryDetail. Edit;
If qryDetail. FieldByName (' sStatus) AsString='Y' then
The begin
QryDetail. FieldByName (' sUserID). AsVariant:=null;
QryDetail. FieldByName (' sStatus). AsString:='N';
QryDetail. FieldByName (' sOrderNo). AsVariant:=null;
QryDetail. FieldByName (' sOrderNo1). AsVariant:=null;
The end;
QryDetail. Post;

The end; This is the code of Delphi, please put this code into c #

CodePudding user response:

Using tools Dephi2CS

CodePudding user response:

QryDetail with c # component data sets, the judgment, has a corresponding method

CodePudding user response:

This is not difficult, the key is qryDetail matter of data sets

CodePudding user response:

reference yct0605 reply: 3/f
this is not difficult, the key is a matter of qryDetail dataset of

Can you give me a detailed say next? The first time I met this kind of situation, does not deal with, thank you
  • Related