利用TfrxCrossView
var Cross: TfrxCrossView; i, j: Integer; begin if c is TfrxCrossView then begin Cross := TfrxCrossView(c); Table1.First; i := 0; while not Table1.Eof do begin for j := 0 to Table1.Fields.Count - 1 do Cross.AddValue([i], [Table1.Fields[j].DisplayLabel], [Table1.Fields[j].AsString]); Table1.Next; Inc(i); end; end; end;
spcomm不是有個OnReceiveData事件,寫個事件掛上。 TDataProcess = class private FComm: TComm; protected procedure OnReceiveData(Send