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 base24编码解码

Delphi idhttp中设置非标准头信息和读写cookie

Delphi 深入了解unigui hyperserver

Delphi android实例-红外线操作(xe10.2+小米5)

incsecond:将一个tdatetime变量加减一定数量的秒数

Delphi xe5的新功能“ tlistview内置搜索过滤”

Delphi 泛型搜索字符串数组

Delphi 将label的caption内容竖向显示

Delphi 动态调用chm文件

Delphi comobj调用wmplayer播放音乐

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



打赏

取消

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

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

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

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

评论

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