VarIsNull函数没有申明是因为你没有包含这个函数的unit文件
implementation
uses Variants;
provider 没有申明的原因是
var table1:TTable
TTable这个类里面根本就没有provider这个类属性Table1.Provider.ApplyUpdates(CustVar,0,ErrCount);这样的调用当然会犯错了。
至于错误:在Delphi6.0和Delphi5.0中共同的错误是Too many actual Paramcters,这是什么错误呢?
你没有告诉错误出处:我无法告知。
在delphi中编译所报告的有很多错误是连带错误,意思就是其实你只有一个地方的代码写错了,但它会给你报一大堆错误出来。。

解决方案 »

  1.   

    delphi5和delphi6有此地方相差挺大,我刚用时,也老是这样那样的
      

  2.   

    VarIsNull的帮助,我觉得你在出现问题的时侯首先应该去看帮助。
    varIsNull是delphi自带的,只要在delphi帮助里面能查到的函数,都是delphi自带的。indicates whether the specified variant is Null.UnitVariantsCategoryVariant support routinesfunction VarIsNull(const V: Variant): Boolean;DescriptionVarIsNull returns True if the given variant contains the value Null. If the variant contains any other value, the function result is False.Note: Do not confuse a Null variant with an unassigned variant. A Null variant is still assigned, but has the value Null. Unlike unassigned variants, Null variants can be used in expressions and can be converted to other types of variants.
    2:尽信书不如无书。
    3:我没有做过多层开发,但你里面犯的错误是delphi的常识性错误。
      

  3.   

    使用varIsNull、varIsEmpty等函数时,一定要包含variants文件。
    "Too many actual Paramcters"错误,你一定是对某个函数使用了
    不正确的参数列表。
      

  4.   

    Too many actual Paramcters一般是参数不对,比如调用函数的时候参数没有设置好,看看是那一段出错,仔细查查看把