小弟想在弹出的messagebox对话框中显示edit1.text中的值,该咋办?或者用别的方法实现也行;
var i:integer;
begin
I:=application.messagebox(‘你输入的值是:xxxx','确定输入值’,mb_yesno);
if i=7 then begin
exit;
end
else begin
…………
…………
…………
end;
var i:integer;
begin
I:=application.messagebox(‘你输入的值是:xxxx','确定输入值’,mb_yesno);
if i=7 then begin
exit;
end
else begin
…………
…………
…………
end;
解决方案 »
- delphi通用查询问题
- ShowRecordCount需要USES什么?
- 请教个遍历函数问题
- 大家好:请问一下Shockwave Flash Object 格式的文件用什么工具打开——————在线等待!!!!!
- 如何将字符11110000 转换为十六进制 FO
- 求助!!!SimpleDataSet在查询之后就不能再添加数据了?奇怪。
- 控件的子属性如何通过代码设置?
- 如何在DBGRID上实现象EXCEL的列冻结功能?
- 关于delphi的视频压缩,明白人给指条路
- 多线程问题!请帮忙!!
- 请教:如何读取指定路径下的TXT文件中的指定字符
- [dbnetlib][connectionopen(connectionl).)]sqlserver不存在或拒绝访问
ss:string;
begin
ss:='你输入的值是:'+edit1.text;
I:=application.messagebox(ss,'确定输入值’,mb_yesno);
if i=7 then begin
exit;
end
else begin
…………
…………
…………
end;
不过可惜还是不行的嘛,第一个错误为:
……incompatible types:'string'and'PAnsiChar'
……missing operator or semicolon
……incompatible types:'procedure,untyped pointer or untyped parameter' and'PAnsichar'
……could not compile used unit 'unit1.pas'
第二个错误为:
[Error] Unit1.pas(32): Incompatible types: 'String' and 'PAnsiChar'
[Error] Unit1.pas(33): Missing operator or semicolon
[Error] Unit1.pas(38): Incompatible types: 'procedure, untyped pointer or untyped parameter' and 'PAnsiChar'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
ss:='你输入的值是:'+edit1.text;
I:=application.messagebox(pchar(ss),'确定输入值’,mb_yesno);
var i:integer;
begin
I:=application.messagebox(PChar('你输入的值是:'+Edit1.Text),'确定输入值',mb_yesno);
if i=7 then begin
exit;
end
end;