Download MetaTrader 5

A question from the reference

To add comments, please log in or register
Deposit to your account using bank cards via Gate2Shop
kemalturgay
265
kemalturgay 2015.01.01 21:04 

There are [in] and/or [out] descriptions at the parameter definitions on every function page in the reference.

What does [in], [out] mean in the descriptions of parameters?

kemalturgay
265
kemalturgay 2015.01.06 18:24  

I'm sorry for starting a thread for such simple question ...

But, I can not find any info from Google.

Anyone knowing the meanings of them?

Thanks.

Alain Verleyen
Moderator
30707
Alain Verleyen 2015.01.06 18:59  
kemalturgay:

I'm sorry for starting a thread for such simple question ...

But, I can not find any info from Google.

Anyone knowing the meanings of them?

Thanks.

[in] for input. This is a value the calling code provide to the function.

[out] for output. This is a value the function returns to the calling code.

kemalturgay
265
kemalturgay 2015.01.06 23:19  
angevoyageur:

[in] for input. This is a value the calling code provide to the function.

[out] for output. This is a value the function returns to the calling code.

Then, the [in]s are the function parameters and the [out]s are the return values ... am I right?

But, in the reference, these expressions are always used with the function parameters (never used with the return values) and some parameters has both of them ... for example the parameter of the ArraySort().

kemalturgay
265
kemalturgay 2015.01.08 19:00  

It is still not so clear for me.

I would be grateful for any additional comment.

To add comments, please log in or register