delphi 三个消息函数的威力


本文整理自网络,侵删。

 

InputBox,InputQuery和ShowMessage函数的应用:

uses dialogs;
var s,s1:string;
b:boolean;
begin
s:=trim(Inputbox('NewPassword','Password','masterkey'));
b:=s<>'';
s1:=s;
if b then
b:=InputQuery('Confirm Password','Password',s1);
if not b or (s1<>s) then
ShowMessage('Password Failed');
end;

将以上代码运行一下,看看是什么效果?

相关阅读 >>

Delphi tidhttpserver开发http服务端外网无法访问

Delphi 运行js

Delphi中dataset和json的互转

Delphi实现解析百度搜索结果link?url=

Delphi 简单播放mp3

Delphi indy控件实现网络验证与asp通信

Delphi版inf方式加载驱动

Delphi xe 使用asqlite操作sqlite数据库乱码

Delphi windows的消息传递--消息盒子

Delphi 清空文件夹

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



打赏

取消

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

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

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

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

评论

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