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

📄 halexam.txt

📁 一个Delphi解释器的例子
💻 TXT
字号:
Example of external variables usage in interpreter:


Var
  OV:string;
  OP:Integer;

function TForm1.HalComp1VarNameTOID(const S: String): Integer;
begin
  If s='OV' then Result:=0
  else
  If s='OP' then Result:=1
  else
   Result:=-1;
end;

procedure TForm1.HalComp1SetVar(ID: Integer; Value: Variant);
begin
  Case id of
  0: OV:=Value;
  1: OP:=Value;
  end;
end;

function TForm1.HalComp1GetVar(ID: Integer): Variant;
begin
  case id of
  0: Result:=OV;
  1: Result:=OP;
  end;
end;

⌨️ 快捷键说明

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