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

[amibroker] VBScript within AFL Function ?



PureBytes Links

Trading Reference Links

Anyone have a clue why this apparently doesn't work ?

RRR apparently never gets the value of what is in YYY and thus never 
returns it to TTT. The MsgBox also shows RRR to be non existant. 
There are however no problems with SSS which is set in VBS.  It shows 
in the message box and via printf.

EnableScript("VBScript");

function XXX(YYY)
{
    ZZZ = 0;

    printf(NumToStr(YYY) + "\n");

    <%
        RRR = AFL.Var("YYY") 
        SSS = 7

        MsgBox CStr(RRR) + " " + CStr(SSS)

        AFL.Var("TTT") = RRR
        AFL.Var("UUU") = SSS
    %>

    printf(NumToStr(TTT) + "\n");
    printf(NumToStr(UUU) + "\n");

    ZZZ = 0;

    return;
}

XXX(6);