先把数据从数据库里拿出,然后循环,用additem一个一个加上去!

解决方案 »

  1.   

    kai_chun(bluefish) is right......
    rst.open
    lsField.clear
    if not rst.recordcount>0 then rst.movefirst
    do while not rst.eof
       lsField.Additem rst!username
       rst.movenext
    loop
    rst.close
      

  2.   

    我用的是foxpro2.5的数据库,要怎么做?
      

  3.   

    那么多好的数据库,你为什么非要用foxpro2。5呢?
      

  4.   

    不管你用什么数据库,只要有驱动程序,用OLEDB或是ODBC都可以连上去的。
    操作基本一样。