if shape='' then exit;
如果shape='' 就退出程序,想在exit 之前先弹出个提示框,
比如 if shape='' then ShowMessage('请先选择要删除的物体'); exit; 改怎么写?还有个问题问一下,
if k=1 then
i:=2;
n:=3;
k=1条件成立的话, i:=2;n:=3;这两句语句会不会都执行,想让 i:=2; n:=3;都执行,要怎么写?
如果shape='' 就退出程序,想在exit 之前先弹出个提示框,
比如 if shape='' then ShowMessage('请先选择要删除的物体'); exit; 改怎么写?还有个问题问一下,
if k=1 then
i:=2;
n:=3;
k=1条件成立的话, i:=2;n:=3;这两句语句会不会都执行,想让 i:=2; n:=3;都执行,要怎么写?
解决方案 »
- dspack如何实现 WMV视频 播放从时间点m到时间点n的视频呢
- 在TWebBroswer插入一个Table,如何让Cursor定位在table左上角﹖
- 这句C代码在delphi中怎么写?
- 请问大家SQL2000中的一个问题
- 画连续线
- 如何更快的遍历表中的数据?在线等待给分
- =========delphi版的朋友:有件事情请大家一定进来看看,并且建议版主能够置顶=================
- 急救:如何使窗口随着分辩率改变而按比例进行改变?
- 推荐一个比较稳定的串口控件?
- tikkypeng(千两狂死郎)请进“怪!怪!怪!这样的sql语句为什么会出错???请高手关注:)”
- 是哪里错误了?
- delphi操作xml的问题
begin
showmessage..
exit;
end;
s1:string;
begin
s1:= InputBox(Application.Title,'请先选择要删除的物体','');
if s1 = '1' then
ShowMessage('Del 1')
else if s1 = '2' then
ShowMessage('Del 2')
else if s1 = '3' then
ShowMessage('Del 3')
else if s1 = '4' then
ShowMessage('Del 4');
end;
if k=1 then //成立
i:=2; //会执行
n:=3;//会无条件执行
if k=1 then
begin
i:=2;
n:=3;
end;