My stringsubstr is not working as expected
The reason is that the arithmetic comparison == correctly identifies that the upper and lower case letters are different ascii characters.
You have 2 options:
1) Use the StringCompare() function which ignores case
or
2) Convert the strings to a common case using StringUpperCase() or StringLowerCase() prior to comparison
CB
The reason is that the arithmetic comparison == correctly identifies that the upper and lower case letters are different ascii characters.
You have 2 options:
1) Use the StringCompare() function which ignores case
or
2) Convert the strings to a common case using StringUpperCase() or StringLowerCase() prior to comparison
CB
Thanks Cloud, I could not find these functions, that is what I need.
I am getting data out of a file, in this case, the value I am getting is "EUR/USD". Then I perform a little string manipulation to get the "/" out of the string.
Notice the follow:
This works with the result of:
2009.07.21 09:30:49 Callout1 EURUSDgfx,M1: Symb:Eur/UsdTmpSymb:EurUsd
The next part is an if condition to get the stringsubstr of TmpSymb, if it was found, it would add the values to the vars, in this case, it fails to find...
Result:
2009.07.21 09:30:49 Callout1 EURUSDgfx,M1: We did not get EurUsd in EURUSDgfx