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

📄 mitec_params.int

📁 MSIC, source code for delphi
💻 INT
字号:
unit MiTeC_Params;

interface

uses SysUtils, Classes, Windows;

type
  TFindParamOption = (fpMatchCase, fpPartial);

  TFindParamOptions = set of TFindParamOption;

  TApplicationParameters = class
  private
    FParamList: TStringList;
    function GetParamCount: Byte;
    function GetParameter(Index: Byte): string;
    procedure ReadParameters;
    function GetCmdLine: string;
    function GetIsNumber(Index: Byte): boolean;
  public
    constructor Create;
    destructor Destroy; override;

    property Parameters[Index: Byte]: string read GetParameter;
    property ParamIsNumber[Index: Byte]: boolean read GetIsNumber;
    property ParamCount: Byte read GetParamCount;
    property CommandLine: string read GetCmdLine;

    function IndexOf(Value: string; Options: TFindParamOptions = []): integer;
  end;

implementation

⌨️ 快捷键说明

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