This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
Bug Report List - Build 137Back to topics list |
|
CoenWillemse
2004.12.10 02:59
Thought it might be a good idea to have a bug report list per version?
Well, here's the (possible) first for build 137... If the following piece of code is run, the output is as follows: string splitArray[]; Print("ArraySize: " + ArraySize(splitArray)); Print("splitArray(0): " + splitArray[0]); return(0); ============== testie USDJPY,H1: ArraySize: 1 23:28:50 testie USDJPY,H1: index 0 is out of range [0-0] 23:28:50 testie USDJPY,H1: not initialized string in array 23:28:50 testie USDJPY,H1: not initialized string 23:28:50 testie USDJPY,H1: splitArray(0): ================================== i.e. ArraySize = 1, even though the array hasn't been initialised yet or contains any elements. Also, will there be a function developed that actually gives you the number of elements in an array? e.g. if the statement 'string anyArray[5];' is run, ArraySize(anyArray), returns '5', even though the array hasn't been assigned any elements yet - i.e. anyArray[0] - anyArray[4] equal (NULL). |
|
Slawa
2004.12.10 12:32
there is no bug. described bug is feature. You've described ;-)
|
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
