Friday, July 13, 2018

Main

The main() method is the entry point when the class is executed from a menu
item. The method is static. It defines and initializes the object. Notice that
new()should never accept any parameters. The main method receives one formal
parameter that is an
args() object. This object is described further.
The
main() method is also responsible for calling prompt(), which executes the
dialog, and then calling
run() to perform the manipulation.


1
2
3
4
5
6
7
8
9
static void main(Args _args)
{
  DemoRunBase demoRunBase;
  demoRunBase = new DemoRunBase();
  if (demoRunBase.prompt())
  {
    demoRunBase.run();
  }
}

With a main() method in place, a RunBase class can now be called from a menu
item in the AOT.


Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...