Conditional
statement
Infolog :
static void Intro_Infolog(Args _args)
{
int i;
;
info("This is an info.");
warning("This is a warning.");
error("This is an error.");
setprefix("prefix text");
for (i=1; i<=3; i++)
{
setprefix("1. for loop");
info("loop 1");
}
for (i=1; i<=3; i++)
{
setprefix("2. for loop");
info("loop 2");
}
//info("Check customer parameters.", "",
//SysInfoAction_Formrun::newFormname(formStr(CustParameters),
//identifierStr(Customer_defaultCust), ""));
info("Check the sales form help page.", "ApplDoc://Forms/SalesTable");
throw error("This error stop execution.", "");
}
2 table using while
int counter = 1;
while (counter <= 25)
{
print counter * 2;
counter++;
}
pause;
warning msg
Box::warning("This is a warning
message.", "Title text", "Help text");
Info msg
Box::info("Main Text",
"Title", "This is the help text");\
YesNo msg
Box::yesNo("Choose Yes or No", DialogButton::Yes,
"Yes No
Box Example", "Answer Yes or
No");
Print YesNo selction in print window
DialogButton dialogButton;
dialogButton= Box::yesNo("Choose Yes or No",
DialogButton::Yes, "Yes No Box Example");
if (dialogButton == DialogButton::Yes)
{
print "You chose Yes";
pause;
}
else if (dialogButton == DialogButton::No)
{
print "You chose No";
pause;
}
Info log
info("This is an info infolog");
warning
warning("Infolog text");
error
error("Infolog text");
YesNo Box -Question
DialogButton dialogButton;
dialogButton = Box::yesNoCancel("Do you want to
continue?",
DialogButton::Yes, "Question",
"Bottom help text");
//(“Matter”,Default selection, “Title”);Infolog :
static void Intro_Infolog(Args _args)
{
int i;
;
info("This is an info.");
warning("This is a warning.");
error("This is an error.");
setprefix("prefix text");
for (i=1; i<=3; i++)
{
setprefix("1. for loop");
info("loop 1");
}
for (i=1; i<=3; i++)
{
setprefix("2. for loop");
info("loop 2");
}
//info("Check customer parameters.", "",
//SysInfoAction_Formrun::newFormname(formStr(CustParameters),
//identifierStr(Customer_defaultCust), ""));
info("Check the sales form help page.", "ApplDoc://Forms/SalesTable");
throw error("This error stop execution.", "");
}
No comments:
Post a Comment