Please help explain code

Dear members of dynamicsuser.net,

I need your help badly to help explain the code provided below:

EmplTable PRS_SalesResponsible(boolean _forUpdate = false)

{

return EmplTable::find(this.SalesResponsible, _forUpdate);

}

Question:
1. What is:

(boolean _forUpdate = false)

2. What is:

return EmplTable::find(this.SalesResponsible, _forUpdate)

Thank You In Advance.

Regards,

Bongcs

Bump

http://msdn.microsoft.com/en-us/library/aa879893.aspx

http://dynamicsuser.net/forums/t/45343.aspx

This has been discussed in the forum. Please do search.

To Mr. Kranthi,

Thank you very much for your help.

Appreciate it.

Regards

Hi,

return Empltable::find(this.salesResponsible, _forUpdate) => returns a cursor of Empltable table for the value of this.salesResponsible

_forUpdate = false => a parm that specifies if the cursor returned shall be updated

Hope it helps

Regards,

Thomas

Hi Thomas !

Thanks for the evaluation of the code.

Much appreciation.

Regards,

Bong.