Axapta : Confirm dialog

1
2
3
4
5
6
    DialogButton    result;
    ;
    result = Box::yesNo("คุณแน่ใจหรือไม่ ?",DialogButton::No);
    if(result == DialogButton::Yes) {
      // คำสั่งที่จะให้ทำเมื่อผู้ใช้ตอบยืนยัน
    }

หรือใช้คำสั่งแบบไม่ต้องประกาศตัวแปร

1
2
3
4
5
if(box::yesNo("Do you want something to happen?",
      dialogbutton::Yes) == dialogbutton::Yes)
   {        
           //do something
    }


Written by Komkid on August 5th, 2009 with no comments.
Read more articles on Axapta and Programming.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:

You have to be identified to write a comment.