Q
qingfeng47
Unregistered / Unconfirmed
GUEST, unregistred user!
代码:if main.Form2.Table1.Locate('name',VarArrayOf([edit1.text]),[loCaseInsensitive]) then
information.Form3.Show
else
showmessage('无此人!');
我用以上代码编译时是通过了,但是一运行就出现错误!提示如下:
"Project name.exe raised exeception class EVarianterror with message 'Invalid variant type conversion'.Process stopped.Use step or Run to continue."
我觉的应该是VarArrayOf()用错了!!但应该怎么用呢??请个高手想想!!!!
information.Form3.Show
else
showmessage('无此人!');
我用以上代码编译时是通过了,但是一运行就出现错误!提示如下:
"Project name.exe raised exeception class EVarianterror with message 'Invalid variant type conversion'.Process stopped.Use step or Run to continue."
我觉的应该是VarArrayOf()用错了!!但应该怎么用呢??请个高手想想!!!!