关于Variant类型的问题(50分)

N

netcore

Unregistered / Unconfirmed
GUEST, unregistred user!
为什么我写的下面这句会提示错误?
var
v:Variant;
lsa:Tstringlist;
.......
V:=VarArrayOf([lsa])
//运行到这里系统提示‘Could not convert variant of type (Array Variant) into type (String)
 
你确定你的V是Variant类型的吗?
从错误提示来看,你的V是字符串型的,不会用了with之类的语句吧
 
同意 轻舞肥羊

 
用Another_eYes所说的方法成功。
 

Similar threads

S
回复
0
查看
949
SUNSTONE的Delphi笔记
S
S
回复
0
查看
770
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部