mql4 ArrayBSearch with false or -1 result
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.
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