Announcement

Collapse
No announcement yet.

return array problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • return array problem

    I'm having a problem referencing an array returned from another efs.

    The return from the efs being called is:
    return new Array(dKeltnerBasis + (nRangeFactor * dATR), dKeltnerBasis, dKeltnerBasis - (nRangeFactor * dATR));

    I'm calling it like this:
    Value2 = call("gmd/KeltnerAtrEmaAdj.efs", 16, 1.3);

    and trying to reference like this:
    return (Value2[0]);

    If I simply do this:
    return Value2;
    It displays all three values the top call returns correctly so it seems to be an array.

    I can't even do this:
    return Value2.length;

    In all cases I get the error "Value2 has no properties"

    Thanks

  • #2
    gdargento
    See the second post in this thread which covers using call() or callFunction() with efs that return an array
    Alex

    Comment

    Working...
    X