Need help to change function into bool that can be called many times with ability to change parameter
Seng Mmar: How can I turn this function into bool?
-
It already is; you just have to return a bool value before ending.
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor -
You can simplify by using StringSplit instead of subscr.
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
How can I turn this function into bool? it only has 1 error which is the default value for the array. How can I correct it?
Thank you in advance for assistance.
bool ExtractInputNumber(string input_number="1;2;3;4",
double &inputarray[]) <----- 'inputarray' - missing default value for parameter
{