[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EasyLanguage Functions



PureBytes Links

Trading Reference Links

At 1:03 PM -0400 5/30/99, Chris Edwall wrote:

>Does anyone know a way to return 2 values from an EasyLanguage function?


The only way I know of is to add a "Mode" input and arrange the code to
return different values based upon that input. This requires you to call
the function one time for each output but at least the function code is not
duplicated. See the code below for the idea.

Bib Fulks

-------

{Function XXX}

Input: Mode(NumericSimple), ....

  <code to calc outputs Out1, Out2, etc.>

if Mode = 1 then XXX = Out1 else
if Mode = 2 then XXX = Out2 else
if Mode = 3 then XXX = Out3;