Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1323
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
is it possible to print EMPTY_VALUE as "EMPTY_VALUE" instead of 1797......?
more info... code
"EMPTY_VALUE" cannot be 1797......
more... code
What exactly do you need for the print?
Thank you,
there can only beEMPTY_VALUE in one place))
Thank you,
there can only beEMPTY_VALUE in one place))
I'm not an expert like you, but...
I would like to be able to use a recording instead of
it would be possible to use an entry
I suspect that, if possible, it would be with overloading. But I lack the knowledge and imagination.
If this is possible, please advise how to implement it.
I would like to be able to use a recording instead of
it would be possible to use an entry
I suspect that, if possible, it would be with an overload. But I lack knowledge and imagination.
If it is possible, please advise how to implement it.
https://www.mql5.com/ru/docs/basis/function/operationoverload
https://www.mql5.com/ru/docs/basis/function/operationoverload
Thank you, such implementation has occurred to me, but it is not quite the same due to absence of Value1 itself. That is, the example I created is of course extremely simplified, but it is implied that this is not the main value of the class, that there can be a number of such values and that for each such a construct can be described.
Or for such an implementation, is it possible to describe only a separate class or structure in which to implement the overloading, and in this class to describe variables of the created type? But, if other variables of the class are involved in the assignment operation, then again, it does not add up.
Actually, I wanted to implement something similar to Let/Set/Get methods in vbs.
is it possible to print EMPTY_VALUE as "EMPTY_VALUE" instead of 1797......?
simply overload DoubleToString, if it returns the string "EMPTY_VALUE" otherwise call ::DoubleToString