Forum Discussion

FICO's avatar
FICO
Community Manager
5 years ago

Accessing Mosel array from JavaScript

Hello,

I have a Mosel array:

arr: array(S, T) of real

and need to sum it over T for a fixed s in S - need to do this in JavaScript in VDL. How can this be done?

Thank you!

Miroslav

2 Replies

  • FICO's avatar
    FICO
    Community Manager

    Hi Miroslav,

    I'm a bit unsure of what you are trying to achieve by the mention of JavaScript in VDL.

    I have attached a short example that I think may be close to what you have requested but let me know if there is something else required.

    Best regards,

    Joc

  • FICO's avatar
    FICO
    Community Manager

    Hi Joc,

    Thank you very much for the help and quick reply! This is exactly what I needed. Somehow, I couldn't get the the individual array elements before. Maybe needed to convert the index to string.

    Best regards,

    Miroslav