⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄

📁 Delphi技巧
💻
字号:
[arrayd | array declaration (var)]
array[0..|] of ;

[arrayc | array declaration (const)]
array[0..|] of = ();

[cases | case statement]
case | of
  : ;
  : ;
end;
  
[casee | case statement (with else)]
case | of
  : ;
  : ;
else ;
end;
  
[classf | class declaration (all parts)]
T| = class(T)
private

protected

public

published 

end;

[classd | class declaration (no parts)]
T| = class(T)

end;

[classc | class declaration (with Create/Destroy overrides)]
T| = class(T)
private

protected

public
  constructor Create; override;
  destructor Destroy; override;
published 

end;

[fors | for (no begin/end)]
for | :=  to  do

[forb | for statement]
for | :=  to  do
begin

end;

[function | function declaration]
function |(): ;
begin

end;

[ifs | if (no begin/end)]
if | then

[ifb | if statement]
if | then
begin

end;

[ife | if then (no begin/end) else (no begin/end)]
if | then

else

[ifeb | if then else]
if | then
begin

end
else
begin

end;

[procedure | procedure declaration]
procedure |();
begin

end;

[trye | try except]
try
  | 
except

end;

[tryf | try finally]
try
  | 
finally

end;

[trycf | try finally (with Create/Free)]
|variable := typename.Create; 
try

finally
  variable.Free;
end;

[whileb | while statement]
while | do
begin

end;

[whiles | while (no begin)]
while | do

[withb | with statement]
with | do
begin

end;

[withs | with (no begin)]
with | do
[messi | messagedlg[information,ok]]
MessageDlg('|'
           ,mtInformation
           ,[mbOk]
           ,0);
[messw | messagedlg[warning,ok]]
MessageDlg('|'
           ,mtWarning
           ,[mbOk]
           ,0);

[messe | messagedlg[error,ok]]
MessageDlg('|'
           ,mtError
           ,[mbOk]
           ,0);
[tmenuc | TmenuItem.Creat[Self]]
TmenuItem.Create(Self);
[messc | MessageDlg[Confirmation/Yes/No]]
MessageDlg('|'
           ,mtConfirmation
           ,[mbYes,mbNo]
           ,0);
[input | InputBox[]]
InputBox('|' //标题
        ,'' //提示
        ,'');//默认输入

[int | IntToStr[]]
IntToStr(|)

[form | format['string',[ ]]]
Format('|',[ ]);

[str | StrToInt[]]
StrToInt(|);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -