Try this code, I hope to help you:
static void jobclass(Args _args)
{
Dictionary dict = new Dictionary();
Int idclass;
;
idclass = dict.className2Id(classstr(MyClass));
ClassFactory.createClass(idclass);
}
class Myclass
{
}
void new()
{
;
info('new');
}
Best regards,
Liviu
massimoiuri <[EMAIL PROTECTED]> wrote: Can I create an instance of a class giving only the class name (a
string parameter) ?
I am looking for a method similar to
ClassFactory.createClass(classnum(MyClass));
but I want to pass the string containing the class name.
Is there any method to get the class number giving only the class name
in string ?
thanks in advance
SPONSORED LINKS
Computer part Programming languages Microsoft axapta Support exchange
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "development-axapta" 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.
---------------------------------
---------------------------------
Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail.
[Non-text portions of this message have been removed]
SPONSORED LINKS
| Computer part | Programming languages | Microsoft axapta |
| Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" 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.

