if edit1.test='' then
  begin
   showmessage('a');
   edit1.setfocus;
   --停止运行
  end;
  .......怎样停住程序的运行,返回呢

解决方案 »

  1.   

    以上问题已解决
    请问怎么为dbgrid的列的标题赋值???
      

  2.   

    有个items[0].title.caption属性***************************************************************
    无条件送您50元,人人有份!
    网址: http://chinaour.com/?puker
      

  3.   

    Exit;就行了,它会停止所在的过程和函数
      

  4.   

    dbgrid的列的标题赋值:items[0].title.captionorselect customer as '顾客' from dispatchlists
      

  5.   

    if edit1.test='' then
      begin
       showmessage('a');
       edit1.setfocus;
       --停止运行
        Exit;  //退出这个过程,退出程序的话用Application.Terminate;
      end;
      .......
      

  6.   

    来个狠点的:
    if .... then
    begin
       release resource,OLE container..
       application.terminiate;
    end;