TMateriel=class
private:
FSerialnumber:string;
FCom:string;
FDis:string;
...
public:
procedure SetSerialnumber(Value:string);
procedure SetCom(Value:string);
procedure SetDis(Value:string);
property Serialnumber:string read FSerialnumber write SetSerialnumber;
property Com:string read FCom write SetCom;
property Dis:string read FDis write SetDis;
........
end;
PMateriel = ^TMateriel
呵呵,似乎有点不劳而获.
你若有多项数据,还可以加上TLIST类.
type TMaterialData=class(TMaterial)
private
DataList:TList;
function GetItems(ItemIndex: integer): TMaterial;
procedure SetItems(ItemIndex: integer
const Value: ObjList);
public
property Items[ItemIndex:integer]:TMaterial read GetItems write SetItems;
end;