已知:
StrList:TStringList;StrList.add('string');
StrList.add('integer');
StrList.add('boolean');
...问题:
要对StrList所包含的数据类型各定义一个变量,变量名随便(可以是V1,V2,V3...)
StrList:TStringList;StrList.add('string');
StrList.add('integer');
StrList.add('boolean');
...问题:
要对StrList所包含的数据类型各定义一个变量,变量名随便(可以是V1,V2,V3...)
v1: string;
v2: integer;
v3: boolean;
是这个意思吧!
但可能第一个不是string类型,可能是其他类型
再根据StrList判断,赋值、取值
就用楼上neweipeng说的吧,用变体(Variant)