try
 except
如果是在IDE中运行,那么
Delphi主菜单Tools->Debugger Options->Language Exceptions->EVariantError