?
快捷搜索:  as  test  1111  test aNd 8=8  test++aNd+8=8  as++aNd+8=8  as aNd 8=8

新蒲京澳門賭場網站:WinAPI 字符及字符串函數(6) IsCharAlphaNumeric是否是個文

?

unit Unit1;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, StdCtrls;

type

TForm1 = class(TForm)

Bu新蒲京澳門賭場網站tton1: TButton;

Button2: TButton;

Button3: TButton;

Button4: TButton;

Button5: TButton;

procedure Button1Click(Sender: TObject);

procedure Button2Click(Sender: TObject);

procedure Button3Click(Sender: TObject);

procedure Button4Click(Sender: TObject);

procedure Button5Click(Sender: TObject);

end;

var

Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);

var

c: Char;

b: BOOL;

begin

c := #65; {A}

b := IsCharAlphaNumeric(c);

ShowMessage(BoolToStr(b, True)); {True}

end;

procedure TForm1.Button2Click(Sender: TObject);

var

c: Char;

b: BOOL;

begin

c := #97; {a}

b := I新蒲京澳門賭場網站sCharAlphaNumeric(c);

ShowMessage(BoolToStr(b, True)新蒲京澳門賭場網站); {True}

end;

procedure TForm1.Button3Click(Sender: TObject);

var

c: Char;

b: BOOL;

begin

c := #48; {0}

b := IsCharAlphaNumeric(c);

ShowMessage(BoolToStr(b, True)); {True}

end;

procedure TForm1.Button4Click(Sender: TObject);

var

c: Char;

b新蒲京澳門賭場網站: BOOL;

begin

c := #13; {回車鍵}

b := IsCharAlphaNumeric(c);

ShowMessage(BoolToStr(b, True)); {False}

end;

procedure TForm1.Button5Click(Sender: TObject);

var

c: WideChar;新蒲京澳門賭場網站

b: BOOL;

begin

c := #19975; {萬}

b := IsCharAlphaNumeric(c);

ShowMessage(BoolToStr(b, True)); {True}

end;

end.

免責聲明:以上內容源自網絡,版權歸原作者所有,如有侵犯您的原創版權請告知,我們將盡快刪除相關內容。

您可能還會對下面的文章感興趣:

快三平台开户