In Freebasic is there ayway for me to call a program from another progam kind of like automation or something?
I don't know what you mean but what I'm looking if for one FB program to call another FB program.
ya use shell i.e shell "FB_program2.exe"
Use exec( exename as string, cmdline as string ) as integer.
Sorry, I don't understand could you give me an example.
In the first FreeBASIC program, put this:
Code:
exec "SecondFreeBasicProgram.exe", "" ' Might need an '$include
Quote:In the first FreeBASIC program, put this:
Code:
exec "SecondFreeBasicProgram.exe", "" ' Might need an '$include
V1ctor said: "Use exec( exename as string, cmdline as string ) as integer." As it has a return type it is a function not a sub. Can functions be called like this?
Quote:As it has a return type it is a function not a sub. Can functions be called like this?
In PowerBASIC yes, I thought it was ok in FreeBASIC also.
Just tested it and FB doesn't complain about it.