Home > X++ stuffs > How to Copy Args Object Data

How to Copy Args Object Data

 

I was trying to play around with the Args class. I found a class “SysArgs” which can actually be used to create multiple Args object from a given Args object.

Method “copyArgs” is used for copying an args object data into another args object. Here is the example which I have tried out.

server static void CopyingArgs(Args _args)

{

    FormRun _fr;

    SysArgs sysArgs;

    ;

   

    _args = new Args("CustTable");

    sysArgs = SysArgs::createFromArgs(_args);

    _fr = classFactory.formRunClass(sysArgs);

    _fr.init();

    _fr.run();

    _fr.wait();

}

Isn’t it a easy of copying an object Wink 

Advertisements
Categories: X++ stuffs
  1. Anitha
    December 11, 2009 at 4:57 pm

    Quite informative santosh !!!

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: