必须使用哪些关键字来创建变体记录?
问问题
644 次
2 回答
0
case
:考虑来自http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/structuredtypes_xml.html的这个标准示例
TEmployee = record
FirstName, LastName: string[40];
BirthDate: TDate;
case Salaried: Boolean of
True: (AnnualSalary: Currency);
False: (HourlyWage: Currency);
end;
于 2010-06-17T21:45:16.490 回答