How To

External programs access


Beast905 2022-12-28 20:41

I am making a calculator and I was thinking that for some of the more complicated calculations I may need to access other programs to do the calculations. I was planning on compressing the calculation into a bit of data that would contain the type of calculation and the numbers involved and send it to another program to actually calculate it then send the calculated values back to the original program. Is there a way that this is possible or do I have to keep everything inside one program? If this is possible how could I do it?

Timo 2022-12-29 02:46

No, that’s not possible, all the program of one project has to be in one file.

But there are other ways to make your program smaller and more structured. I will comment on that later.

was8bit 2022-12-29 04:20

You can use SUB which is kinda like a program of its own, in that the variables inside a SUB will not interfere with your main code...

Give me a few minutes and i will post an example using your calculator program :'

was8bit 2022-12-29 06:18

Ok, I have something for you.... I will post it as a comment on your calculator post :)

Beast905 2022-12-30 03:45

@was8bit and @Timo, thank you for the responses. It is greatly appreciated.

was8bit 2022-12-30 05:13

Glad to be of help :)

... always feel free to post here anytime :)

Log in to reply.