Home > Back-end >  Use the List and returns the value of storage cxgird changed
Use the List and returns the value of storage cxgird changed

Time:09-17

Novice instruction, to add a few lines in cxgird value after the operation, how to modify part of the value, return the value of each line and stored in a parameter
There is a List how to use?

CodePudding user response:

Procedure TForm1. AddBtnClick (Sender: TObject);
Var
Row: integer;
Signal: TMySignal;
The begin
Row:=ViewParameter DataController. AppendRecord;
Signal:=TMySignal. Create;
The begin
ViewParameter. DataController. Values [row, 0] :=row + 1;
ViewParameter. DataController. Values: [row, 1]=Signal. SignalID;
ViewParameter. DataController. Values: [row, 2]=Signal. SignalMaskoffset;
ViewParameter. DataController. Values [row, 3] :=Signal. SignalEnable;
ViewParameter. DataController. Values: [row, 4]=Signal. SignalPage;
ViewParameter. DataController. Values: [row, 5]=Signal. SignalIndex;
ViewParameter. DataController. Values: [row, 6]=Signal. SignalName;
ViewParameter. DataController. Values: [row, 7]=Signal. Signalunit;
ViewParameter. DataController. Values: [row, 8]=Signal. Signaltype;
ViewParameter. DataController. Values [row, 9] :=Signal. SignalSBit;
ViewParameter. DataController. Values [row, 10] :=Signal. SignalDigits;
ViewParameter. DataController. Values [row, 11] :=Signal. SignalSymbol;
ViewParameter. DataController. Values: [row, 12]=Signal. SignalByteorder;
ViewParameter. DataController. Values [row, 13] :=Signal. SignalAccuracy;
ViewParameter. DataController. Values [row, 14] :=Signal. SignalOffset;
end;
end;
This is the code add records
  • Related