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 实现对xml文件的读写操作

Delphi 判断是否是系统管理员身份

Delphi 获取文件crc和md5

Delphi中的字符串分割

Delphi idhttp使用代理ip

Delphi ioutils 单元(5): tdirectory.tdirectory 的其他功能

Delphi中frame和form有何区别

Delphi 过卡巴2009和沙盘启发杀毒的Delphi源代码

Delphi adotable1 链接mdb数据库

Delphi 结构化文件存取

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



打赏

取消

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

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

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

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

评论

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