Delphi:InputQuery和InputBox的区别
来源:互联网 发布:淘宝看访客来源 编辑:程序博客网 时间:2024/05/17 01:08
InputQuery的返回值是boolean ;InputBox的返回值string
function InputQuery(const ACaption, APrompt: string; var Value: string): Boolean;
InputQuery返回值为是否点了OK 输入的字符串放在了变量Value中
function InputBox(const ACaption, APrompt, ADefault: string): string;
inputBox返回值是字符串,也就是输入的字符串
procedure TForm1.Button1Click(Sender: TObject);
var s:string;
begin //点击了OK按钮后,则
if InputQuery('标题','提示字符',s) then
begin
if s<>'' then //如果输入不为空则
showmessage(s);
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
s:string;
begin
s:=InputBox('标题','提示字符',s);
if s<>'' then
showmessage(s);
end;
0 0
- Delphi:InputQuery和InputBox的区别
- Delphi中Inputbox 和Inputquery 函数的使用
- Delphi中Inputbox 和Inputquery 函数的使用
- Delphi Inputbox,InputQuery用法
- delphi 弹出输入框的InputQuery, InputQuery 函数用法
- .net C# inputBox文字输入对话框,类似delphi的inputBox
- .net C# inputBox文字输入对话框,类似delphi的inputBox
- C# inputBox文字输入对话框,类似delphi的inputBox
- inputbox()和val(inputbox())
- .net C# inputBox文字输入对话框,类似delphi的inputBox收藏
- 設置InputQuery的字体
- delphi InputBox输入密码用*代替,怎样让delphi的inputbox输入框显示密码代表符*
- 【VBA研究】VBA的InputBox函数和Application的InputBox方法
- msgbox函数和inputbox函数应该注意的几点
- C#里的InputBox
- C#里的InputBox
- java和delphi的区别
- Delphi 和 C++的区别
- iOS之渐变虚化背景图片
- My Network programming library
- 用Python写了一个数据格式转换小程序
- IOS 实现录音PCM转MP3格式(边录音边转码)
- XHTML学习<1>
- Delphi:InputQuery和InputBox的区别
- wampserver的apache服务无法启动
- iReport 报表、子报表、主从报表、合计、实例解析
- Launch4j 使用,对java项目的操作打包exe
- css 制作三角形/平行四边形
- iOS -实例变量
- <null>
- iOS之设置tableView背景图片/让UITableView自动滑动(定位)到某一行cell
- jquery仿新浪微博名片提示