Array from String: MLQ4
Hello, i am a new user, so it just sharing.
i have test the code
string aPair[]; // try aPair[10]; string Pairs = "EURUSD,USDJPY,AUDUSD,EURCHF,USDCAD,EURGBP,NZDUSD,EURJPY,GBPUSD,USDCHF,GBPCHF"; StrToStringArray(Pairs, aPair); Alert(aPair[2]); // Should alert AUDUSD Comment(aPair[8]); // the resulr is GBPUSD
just change
string aPair[];with this
string aPair[10];
How can I get an array from a string using MLQ4? In the code below, the alert is blank: