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

📄 dws2mflibutils.pas

📁 script language
💻 PAS
字号:
{**********************************************************************}
{                                                                      }
{    dws2MFLib                                                         }
{                                                                      }
{    A function library for DWSII                                      }
{    Version 1.0 Beta                                                  }
{    July 2001                                                         }
{                                                                      }
{    This software is distributed on an "AS IS" basis,                 }
{    WITHOUT WARRANTY OF ANY KIND, either express or implied.          }
{                                                                      }
{    The Initial Developer of the Original Code is Manfred Fuchs       }
{    Portions created by Manfred Fuchs are Copyright                   }
{    (C) 2001 Manfred Fuchs, Germany. All Rights Reserved.             }
{                                                                      }
{**********************************************************************}

unit dws2MFLibUtils;

interface

uses
  dws2Comp, dws2Exprs, dws2Symbols;

procedure AddIntConst(dws2Unit: Tdws2Unit; Name: string; Value: Integer);
procedure AddStringConst(dws2Unit: Tdws2Unit; Name: string; Value: string);

implementation

procedure AddIntConst(dws2Unit: Tdws2Unit; Name: string; Value: Integer);
var
  cnst: Tdws2Constant;
begin
  cnst := Tdws2Constant(dws2Unit.Constants.Add);
  cnst.DataType := 'Integer';
  cnst.Name := Name;
  cnst.Value := Value;
end;

procedure AddStringConst(dws2Unit: Tdws2Unit; Name: string; Value: string);
var
  cnst: Tdws2Constant;
begin
  cnst := Tdws2Constant(dws2Unit.Constants.Add);
  cnst.DataType := 'String';
  cnst.Name := Name;
  cnst.Value := Value;
end;

end.

⌨️ 快捷键说明

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