Errors, bugs, questions - page 1130
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Upgrade to 930 build in full, please.
Good afternoon. I have updated to build 930. I have the following problem: StringSplit method adds an extra empty field to the resulting array.
If you execute the script:
ushort fields_delimiter=StringGetCharacter("_",0);
string str="_мама_мыла_раму_";
string str_array[];
int fields_num=StringSplit(str,fields_delimiter,str_array);
for(int i=0;i<fields_num;i++)Print("str_array["+i+"] = "+str_array[i]);
The result will be:
str_array[0] =
str_array[1] = мама
str_array[2] = мыла
str_array[3] = раму
str_array[4] =
Item under index 4 should not be there. Before upgrade everything was working, after upgrade the number of fields in a row does not add up when comparing. Have to check array elements for empty string.
Good afternoon. I have updated to build 930. I have the following problem: StringSplit method adds an extra empty field to the resulting array.
If you execute the script:
ushort fields_delimiter=StringGetCharacter("_",0);
string str="_мама_мыла_раму_";
string str_array[];
int fields_num=StringSplit(str,fields_delimiter,str_array);
for(int i=0;i<fields_num;i++)Print("str_array["+i+"] = "+str_array[i]);
What we get as a result:
str_array[0] =
str_array[1] = мама
str_array[2] = мыла
str_array[3] = раму
str_array[4] =
There should be no item under index 4. Before update everything was working, after update the number of fields in the string is not converging in comparison. I have to check array elements for an empty string.
This is correct.
It used to count tokens incorrectly in such cases. Just don't put extra separators.
Can you send the source code to servisdesk?
By the way, a new problem: after upgrading to the new build, all static variables are now unresolved. And on two independent terminals and from any previous (previously working) commit.
Anyone else has faced this problem? How to fix it?
By the way, a new problem: after upgrading to the new build, all static variables are now unresolved. And on two independent terminals and from any previous (previously working) commit.
Anyone else has faced this problem? How to fix it?
By the way, a new problem: after upgrading to the new build, all static variables are now unresolved. And on two independent terminals and from any previous (previously working) commit.
Anyone else has faced this problem? How to fix it?
It is now compulsory to place static members.
Better yet, try to avoid using them.
Why have new products stopped appearing in the terminal in the Market and I can't buy or check new products through the site?