Quantcast
Viewing all articles
Browse latest Browse all 72043

Example for generate Dialogue through code

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)));

   }

}


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>