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

為什麼突然不能用Ctrl+Space的選單了?

缺席
Sei
一般會員


發表:22
回覆:38
積分:17
註冊:2002-05-22

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-03-25 09:47:19 IP:61.30.xxx.xxx 未訂閱
請教前輩: 不知是否有人有碰過,同一個pas裡,n多行之前按Ctrl Space還可以用跳出的選單,突然n行之後就不能了,而且還會出現「Unable to invoke Code Completion to errors in source code」,真的蠻抓狂的,在編譯時我把一個一個Warning解決掉,Hint就沒有管它了,一直不行,天啊,我的程式才寫到五千多行,不能用Ctrl Space的選單就快寫不下去了,編譯會過,程式也執行得好好的,我是個超級懶人,語法單字什麼的都沒有記,這樣寫下去不知要寫到民國幾年,有碰過這個情況的人可否指點一下? ps:我裡面有寫好幾段語法呼叫Word並在Word裡加Table等等動作
ddy
站務副站長


發表:262
回覆:2105
積分:1169
註冊:2002-07-13

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-03-25 13:24:52 IP:61.218.xxx.xxx 未訂閱

Code Insight includes the following features to make coding easier.
To change Code Insight tab
  • code templates for statements declarations etc
  • Activated by pressing Ctrl J
  • Each statement has a shortcut. eg for is a for loop without begin end whereas forb is a for loop with begin end .
  • Either press Ctrl J and select from the list OR type the shortcut name then press Ctrl J eg typing for Ctrl J shows all templates that start with for, whereas typing forb Ctrl J inserts a for statement with begin end, as there is only one shortcut that starts with forb..
  • Custom templates can be added (probably not on Novell)
  • Completion
    • Automatically suggests methods, properties and events to insert in your code must be syntactically correct up to the point where Completion is activated otherwise the error message "invoke Completion due to source Code Code Insight settings
  • code as well as standard methods etc.
  • After typing a procedure or function name then a '(', a description of the parameters will be displayed, as each parameter is input the next parameter to be input is highlighted in bold
  • Use Ctrl Shift Space to activate or reactivate if the tooltip disappears
  • Class code based on the class declarations. eg if methods are specified in the class declaration then skeleton code for the method will be automatically generated in the interface section

  • To activate, input all or part of a class declaration and press Ctrl Shift C 發表人 - ddy 於 2003/03/25 13:27:11

    Sei
    一般會員


    發表:22
    回覆:38
    積分:17
    註冊:2002-05-22

    發送簡訊給我
    #3 引用回覆 回覆 發表時間:2003-03-25 13:26:54 IP:61.30.xxx.xxx 未訂閱
    謝天謝地,終於……找到問題所在了,我在公用的Unit裡有一段選取Word Table的Cell語法 StartRange := WordAp.ActiveDocument.Tables.Item(2).Cell(1,2).Range.Start; EndRange := WordAp.ActiveDocument.Tables.Item(2).Cell(1,2).Range.End-1; WordAP.Selection.SetRange(Start := StartRange, End := EndRange); 將紅色的部份改成End_就好了 可是,不改仍然可以執行,也不會有錯,編譯上也不會出現error或warning,可是在整個程式中就會造成Source Code有錯,而無法按Ctrl Space了
    ddy
    站務副站長


    發表:262
    回覆:2105
    積分:1169
    註冊:2002-07-13

    發送簡訊給我
    #4 引用回覆 回覆 發表時間:2003-03-25 14:01:17 IP:61.218.xxx.xxx 未訂閱
    厲害喔!!妳自我處理的能力還不錯 End 是保留字,下次就多注意吧 < src="http://delphi.ktop.com.tw/loadfile.php?TOPICID=8147403&CC=182217">
    Sei
    一般會員


    發表:22
    回覆:38
    積分:17
    註冊:2002-05-22

    發送簡訊給我
    #5 引用回覆 回覆 發表時間:2003-03-25 14:16:05 IP:61.30.xxx.xxx 未訂閱
    不瞞您說,這問題我已經抓了二天(還不只我一個人……汗),我有上來找過,在bcc版回應大概是Source Code部份有問題,實在快不行了想再問一次,結果是在土法煉鋼下,無法按Ctrl Space一行跳一行Check才找到的(昏);最後發現Ene_是把Word2000.pas叫出來找一下才發現……語法錯誤…… 也很感謝您的抽空回答,只是沒想到我剛在發言打字時,您已post下去了……
    系統時間:2024-05-07 18:45:01
    聯絡我們 | Delphi K.Top討論版
    本站聲明
    1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
    2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
    3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!