adotable1.loadfromfile函数起什么作用?还有一大堆如:
adotable1.savetofile
及adotable1.updatebatch?
书上都没讲。

解决方案 »

  1.   

    adotable1.loadfromfile 从文件中读数据
    adotable1.updatebatch 成批缓存更新
      

  2.   

    我的adotable1本身用adoconnection相连,已有数据,还要loadformfile干吗?莫非从另外的表中读数据?也不对呀!数据格式不一定相同?
      

  3.   

    呵呵,你可以先用SaveToFile把当前数据集的数据保存起来呀
    然后你可以通过LoadFromFile把保存的数据再读进数据集嘛
      

  4.   

    你的意思是adotable可以不用指定:table name,直接用loadfromfile读数据?
      

  5.   

    总结上面的回答:adotable1用loadfromfile就是在不需要adoconnection的情况下从一个特定的文件中读取数据,同样savetofile把数据保存为特定的文件。
    我的总结对不对呀?
    这些文件可以有那些类型呀?
      

  6.   

    那adotable1.updatebatch呢?什么作用?
      

  7.   

    adotable.updatebatch 
    就是指ADOTABLE是一个数据集设置为缓存更新
    进行数据更改时进行POST在本地,
    最后才用这条语句更新回后台数据库里,OK!
      

  8.   

    adotable1.updatebatch是用缓存更新数据
      

  9.   

    Call LoadFromFile to load the recordset for the calling ADO dataset component from a file. If the loading operation fails, the current recordset is neutralized (set to nil), the dataset component remains inactive, and an EOleException exception is raised. If the attempt to load data from a file is successful, the ADO dataset component is automatically activated and the data made available.FileName is a string containing the name of the file.LoadFromFile closes the dataset component before loading the recordset from the file specified in FileName.
      

  10.   

    adotable1.loadfromfile
    adotable1.savetofile
    用这两个函数可以实现数据备份和恢复,不管什么数据库类型都可以
    大家说是不是呀
      

  11.   

    我被你们越说越糊涂,loadformfile难道可以从各种形式的文件中读取数据吗?从Txt,ddbf,db,XML等等?
      

  12.   

    当然不是了,他所能读取的数据只是通过SaveToFile保存的数据,其他的当然不行了
      

  13.   

    但是好象savetofile可以存储的格式只有两种呀!一个XML还有一个叫?DT?