第一種 最常用的就是//
可以把整行都註釋
//if True then
第二種 大括號,可以分行{}
{if True then
begin
end;}
也可以把//包在裡面
{if True then
begin
// i:=False;
end;}
第三種 (**)
功能最為POWER
可以把第一種跟第二種都包在裡面!!!
(*
if True then
begin
{if True then
begin
// i:=False;
end;}
end
*)
以下程式碼於Delphi 2009環境中測試無誤!
//if True then
{if True then
begin
end;}
{if True then
begin
// i:=False;
end;}
(*
if True then
begin
{if True then
begin
// i:=False;
end;}
end
*)
👉 Delphi-Component-TProgressBar進度條範例
我們團隊使用Delphi已經三十年以上的經驗,如果有什麼問題,也可以在下方留言處與我們分享,感謝您!!
手刀試用=>蝦皮對帳王
手刀試用=>康捷雲端ERP
期待您的留言

Comments