delphi定义了一个类,如何引用他?

Type
TFeedType = record

DMFed:real; // ' Quantity of this feed fed to the animal (dry matter basis)
Name:String; // ' name of the feed (e.g. "Corn Silage, mature")
ReadOnly:Boolean; // ' is "True" if the feed is part of the original library
Category:String ; // ' feed category (e.g. Forage, Grass, Animal Product,...)
IFN:String; // ' International Reference Number
End;

vb是Feed() : TFeedType;这样,引用。
delphi如何引用呢?

第1个回答  2012-02-10
首先,你这个定义的不是类,而是和类有点像的 记录体,
Type
TFeedType = Type
这样才是一个类

具体引用就是楼上的那种方法。。
第2个回答  2012-02-10
var
x:TFeedType;
begin
x.IFN:='xxxx'本回答被提问者采纳