全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1137
推到 Plurk!
推到 Facebook!

用ado相關元件如何去讀取一個text file ?

答題得分者是:william
ry_lee
高階會員


發表:368
回覆:251
積分:123
註冊:2002-03-19

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-02-12 20:53:34 IP:61.59.xxx.xxx 未訂閱
我用ado相關元件可以去讀取.db(paradox).dbf(dbase).xls(Excel file),但法去讀取一個text file,有誰知道要如何做才可以讀取? os: win 2000 pro ver ; tool:delphi 6.0
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-02-13 00:47:31 IP:210.3.xxx.xxx 未訂閱
1) create a ODBC DSN for the text file using Text Driver 2) config the DSN (e.g. fields) 3) use ADOQuery (not ADOTable!) to connect to the ODBC DSN
ry_lee
高階會員


發表:368
回覆:251
積分:123
註冊:2002-03-19

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-02-17 00:48:58 IP:61.59.xxx.xxx 未訂閱
引言: 1) create a ODBC DSN for the text file using Text Driver 2) config the DSN (e.g. fields) 3) use ADOQuery (not ADOTable!) to connect to the ODBC DSN
你說不要用ADOTable要用ADOQuery,但我用ADOTable卻可存取text file,why ?
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-02-20 10:07:56 IP:147.8.xxx.xxx 未訂閱
引言: 你說不要用ADOTable要用ADOQuery,但我用ADOTable卻可存取text file,why ?
Since I cannot access the db using ADOTable on 2 machines (2000 and XP/98SE)? BTW SQL Explorer cannot open the table while entering the sql select statement could do the trick
系統時間:2024-06-27 1:05:31
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!