Axapta : Confirm dialog


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

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

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

Comments

Popular posts from this blog

Artillery Hornet + OctoPrint + Klipper

ย้ายบ้าน

ใต้ร่มกาสาวพัตร