delphi 取得固定长度的随机字符串


本文整理自网络,侵删。

 
unit Unit1;

interface

uses
  System.Hash, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;

type
  TForm1 = class(TForm)
    ListBox1: TListBox;
    btnAction: TButton;
    procedure btnActionClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.btnActionClick(Sender: TObject);
begin
  self.ListBox1.Items.Add(THash.GetRandomString(32));
end;

end.

相关阅读 >>

Delphi yearof 根据指定的日期返回年

Delphi 判断一个颜色是否是亮色

Delphi求数组最大\最小值

Delphi 一个中英文记录Delphi实现

Delphi 获取文件创建时间

Delphi 网络时间校对

Delphi 字符串与二进制数之间的互相转换

Delphi inttostr 将“整数型”转换成“字符型”

Delphi repeat until 运用

Delphi string与tstringlist

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...