Hello all of you who has answered my question. Thank you for your
help. I have seen the idea og this method. When understood I belive
that it is a quite nice way to write the "accessor".

Best regards
Thomas

--- In [email protected], Allan Ørum
<[EMAIL PROTECTED]> wrote:
> Hi Thomas
>
> 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: [email protected]
> [mailto:[EMAIL PROTECTED] På vegne af Thomas
> Sendt: 26. juli 2005 15:09
> Til: [email protected]
> 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




Reply via email to