project pil.exe raised exception class EDatabaseError with message 'TelList:type mismatch for field 'Tel1', 'expecting:string actual:widestring'.Process stoped.

解决方案 »

  1.   

    哪位前辈指导一下,谢谢。错误这样:Telist :Type mismathch for field'Tel1',expecting:string actual :widestring
      

  2.   

    在DELPHI中,string和WideString是隐式转换的,在赋值的时候就自动转换,但是看你的错误(EDatabaseError)是数据库出错。
      

  3.   

    数据库里的字段Tel1是什么类型?
      

  4.   

    数据库里的字段Tel1 设置为varchar 试一下。一般不用nvarchar类型的。这个字段长度不够引起的吧。
      

  5.   

    你赋值和取值的都用AsString就没问题的,你是否有什么特别的写法?
      

  6.   

    数据是从Oracle导入的。不过现在我用了别的法子了。可以做了。谢谢了。