I have always passed arrays by reference.
Nokinger:
i just tried to wrote a wrapped ArrayBSearch Method but "dArray[iIndex * iSize + 0]" is always "0".
How can i acces a undefined array like my paramter "(double dArray[], ...)" ?
- dArray[] is a single dimensioned array, so ArrayDimension will ALWAYS return 1
- If dArray[iIndex] is always zero, the problem is in your calling code.
- Arrays are passed by reference always. I only add the ampersand if the function is going to modify elements as a matter of style.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi folks,
how can i retrive a failed return value for ArrayBSearch ?
i just tried to wrote a wrapped ArrayBSearch Method but "dArray[iIndex * iSize + 0]" is always "0".
How can i acces a undefined array like my paramter "(double dArray[], ...)" ?
RegardsNok