Hi,
try using xppsource class, check editmethod() and editMethodWithClass() methods in that class..
Regards,
sreenath Reddy G
sreenath reddy
hoo.co.in> cc:
Subject: Changing Class Methods without opening class
05/10/2006
06:54 PM
Hi,
use classBuild class
it will create a new class in axapta thru code.
u can try this.
static void createnewClass(Args _args)
{
ClassBuild newClassBuild;
ClassName className;
;
ClassName = "MyNewClass";
newClassBuild = new ClassBuild(ClassName);
newClassBuild.addMethod("method1", "void method1(){\n str hello;}");
newClassBuild.addMethod("method2", "void method2(){\n str helloworld;}");
newClassBuild.classNode().AOTcompile(1);
}
NOW,IF U WANT TO CHANGE METHOD U CAN JUST CHANGE THE CODE like
newClassBuild.addMethod("method2", "void method2(){\n str madam;}");
now it will just overwrite the code existing in method2()..
sreenath Reddy
Sreenath Reddy G
System Analyst,
Sonata Software Ltd.
1/4, APS Trust Building,
N. R. Colony, Bull Temple Road,
Bangalore-560019.
Mobile-+9886331041
Yahoo! Mail goes everywhere you do. Get it on your phone.
---------------------------------
Get amazing travel prices for air and hotel in one click on Yahoo! FareChase
[Non-text portions of this message have been removed]
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
SPONSORED LINKS
Business finance course | Business to business finance | Small business finance |
Business finance consultant | Business finance magazine | Business finance schools |
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.