Post
Topic
Board Project Development
Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux]
by
IGHOR
on 28/07/2019, 23:32:25 UTC
Each script have to run as separated group, it not possible to include from file.

Hi,

How can I call a function from another .js file? Can you give me an example please.

I want to have only main program in QT Bitcoin trader and it will call functions from another files. That way I can better organize my code.

I would like to have classes in one file and at least one for functions.

Thank you and best regards
Damjan

You can send events between two or more scripts, you can find example if you press Help button in Rules panel.

trader.sendEvent? I will look at it. Thank you. This can very be useful. I will maybe use it for some other cases.

But if I want, can I still import file, require ... ?