線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:981
推到 Plurk!
推到 Facebook!

請幫我瞧瞧是錯在哪里了

答題得分者是:william
rockytian
一般會員


發表:8
回覆:4
積分:2
註冊:2002-11-28

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-01-09 09:00:10 IP:61.145.xxx.xxx 未訂閱
begin var i:integer; begin with Query1,combobox1 do begin items.Clear ; for i:=1 to recordcount do begin combobox1.items.Add(fieldbyname('bom').asstring); end; end; end; end; 提示錯誤:[Error] T_BOMIDSERCHER.pas(52): Statement expected but 'VAR' found [Error] T_BOMIDSERCHER.pas(55): Undeclared identifier: 'Query1' 我也不知是錯在哪里了,幫我檢查一下了,謝謝!
william
版主


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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-01-09 09:17:41 IP:147.8.xxx.xxx 未訂閱
Your previous example will not move the cursor, here is my modification: < class="code">begin with Query1,combobox1 do begin Items.Clear ; First; while not EOF do begin Items.Add(fieldbyname('bom').asstring); Next; end; end; end;
rockytian
一般會員


發表:8
回覆:4
積分:2
註冊:2002-11-28

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-01-09 09:26:41 IP:61.145.xxx.xxx 未訂閱
我知道錯在哪里了,我豬頭 謝謝william
系統時間:2024-07-01 4:00:08
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!