static void BestExampleOfDialog(Args _args)
{
DialogButton dialogButton;
container nameAndDOB;
nameAndDOB = ["Gulshan","Gupta",mkDate(22,04,1988)];
dialogButton = Box::yesNo("Do you want to see the birthdate?", DialogButton::Yes);
if (dialogButton == DialogButton::Yes)
{
Box::info(strFmt("%1 %2, %3", conPeek(nameAndDOB,1),
conPeek(nameAndDOB,2), date2str(conPeek(nameAndDOB,3),-1,-1,-1,-1,-1,-1)));
}
else
{
Box::info(strFmt("%1 %2",conPeek(nameAndDOB,1),conPeek(nameAndDOB,2)));
}
}
*This post is locked for comments