==============
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).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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).