Pass variables to programm

MM2forever

Active Member
Licensed User
Longtime User
How can I pass a variable to a b4p programm?
I think i should do it over a command line parameter but the programm should be running all time and not just been launched and stopped everytime.

I also dont want to do it over registry or files who are checked constantly

Thanks for your help
 

agraham

Expert
Licensed User
Longtime User
You could do this with the Network library. The running program implements a Server object and occasionally checks the Pending property. The program that wants to send the information implements a Client and connects to the server when required.

An example is here http://www.b4x.com/forum/showthread.php?t=1130
 
Top