Var
  cn : _Connection ;
  rs :_Recordset ;
定义是可以这样定义,可用的时候有点麻烦。
何不对 adoDataSet1.Recordset之类的操作?

解决方案 »

  1.   

    应该是
    mycn:OleVariant如果你这样做是不能使用 codeinsight 的不过这没所谓,只要你非常熟悉ADO
    我就是这么做的。哈哈
      

  2.   

    ADOEXPRESS对象定义在ADODB单元中,ADO原生对象定义在ADOINT单元中,connection = ADOInt._connetion;
    command = ADOInt._command;recordset = ADOInt.Recordset;
    errors = ADOInt.errors;error = ADOInt.error;
    parameters = ADOInt.parameters;parameter = ADOInt._parameter;
    property = ADOInt.property_;properties = ADOInt.properties;例:rs:ADOInt.recordset;  con:ADOInt._connetion;
      

  3.   

    但这样还是没有提示啊
    只要用OLEVARIANT就没提示了
    帮帮忙哈
      

  4.   

    ADOEXPRESS对象定义在ADODB单元中,ADO原生对象定义在ADOINT单元中,connection = ADOInt._connetion;
    command = ADOInt._command;recordset = ADOInt.Recordset;
    errors = ADOInt.errors;error = ADOInt.error;
    parameters = ADOInt.parameters;parameter = ADOInt._parameter;
    property = ADOInt.property_;properties = ADOInt.properties;例:rs:ADOInt.recordset;  con:ADOInt._connetion;
    这么一作哈好像ADO原生对象就不一样了
    CON的OPEN方法用不来了