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.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article