If you dont pass a parameter n to this method, n will get the value from the
tablebuffer _emp.name.
If you do pass a value, n will have this value.
The body, simply gives _emp.name the value n, and returns it.
Regards
Allan
-----Oprindelig meddelelse-----
Fra: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] På vegne af Thomas
Sendt: 26. juli 2005 15:09
Til: development-axapta@yahoogroups.com
Emne: [development-axapta] Can anybody explain me this syntax
Hello,
I am used to programming Java and C#. But for some reason I have
problems understanding this syntax:
EmplName name(EmplName n = _emp.name)
{
_emp.name = n;
return n;
}
I understand the following:
the method name returns an EmplName. when calling the method you do it
with a parameter n of the type EmplName. But what dows the n =
_emp.name do? and what goes on in the method body?
Yahoo! Groups Links
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25-07-2005
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.