Can I write FUNCTION/s in MQL4 what return/s the TWO DIFFERENT data types ? - page 2

 
gordon wrote >>
An alternative way (and IMHO a much better way) is to return variables by reference. See the section "Functions that Return Several Values" in the article "MQL4 Language for Newbies - Technical Indicators and Built-In Functions".


+1, this is a much more "general" programming construct and the OP would be better off adopting variable referencing in their call functions versus the other workarounds suggested in this thread.
Reason: