Topic: MQL - The Greatest Language Invented Ever !!
This is a question for the users that think FSB must be free!!
Can you guess what will return the following command:
string text = StringToLower("MyText");My guess is that it will return "mytext".
Create and Test Forex Strategies
You are not logged in. Please login or register.
Forex Software → Developers Forum → MQL - The Greatest Language Invented Ever !!
This is a question for the users that think FSB must be free!!
Can you guess what will return the following command:
string text = StringToLower("MyText");My guess is that it will return "mytext".
Free would be good if everyone donated a few $$ every month, however, from what I saw over the years, there were very few donations although there were a gazillion downloads.
Somehow using free software to earn an income will not work.
Even video games cost a lot of money!
If you are curious what is the correct answer, it is: "true"

If you are even more curious how MQL makes a text lowercase, the answer is:
string text = "MyText";
StringToLower(text);
Print(text);I'm programming from 30 years and today I lost 1 hour for searching a bug in my online data service API. However, the problem was in this "perfectly intuitive" code.
You have to be always suspicious when you see a programming language with commands that starts with a noun.
If you are even more curious how MQL makes a text lowercase, the answer is:
string text = "MyText"; StringToLower(text); Print(text);I'm programming from 30 years and today I lost 1 hour for searching a bug in my online data service API. However, the problem was in this "perfectly intuitive" code.
You have to be always suspicious when you see a programming language with commands that starts with a noun.
The worst is that you're probably used to a sane language like C# that does the intuitive action (Hell even the evil language js deals with uppercase/lowercase strings right.) I looked up the function in their language guide when you first posted it and was like wtf?!
yea MQL is something ....
special, but also documented.:)
StringToLower
Transforms all symbols of a selected string into lowercase.
bool StringToLower(
string& string_var // string to process
);
Parameters
string_var
[in][out] String.
Return Value
In case of success returns true, otherwise - false. To get the error code call GetLastError().I looked up the function in their language guide when you first posted it and was like wtf?!
I'm very surprised that it returns a boolean value. It looks like the MQL developers suppose that the function may fail !?!!!!
Forex Software → Developers Forum → MQL - The Greatest Language Invented Ever !!
Powered by PunBB, supported by Informer Technologies, Inc.