Trin123
15th March 2004, 14:09
How to Execute a VB.exe file by clicking Button on the BaaN screen. What is the function to be used to do the same.
Can anyone help me on this.
lbencic
15th March 2004, 16:16
Is it normally executable from the OS?
You can check this link about
run.prog (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_run_baan_prog_run_prog) command to run external programs.
To attach to a button, for instance the continue button:
choice.cont.process:
on.choice:
run.prog("myvbprog.exe", arg1, RP_WAIT)
You can also check out app_start (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_app_start) if your VB is on the client.
dorleta
16th March 2004, 10:20
The standard solution.
Watch this dll have lot of interesting solution about this problem
function extern long tgwms0004.start.application(const string application(),
const string arguments (),
domain tgyenox local,
long mode,
[long pop_up])
This function starts the application with the given arguments. The given
application may not be empty, the arguments may be empty.
Parameters:
application the application which must be started
arguments the arguments with which the application will be started
local if tgyenox.yes then the application will be started on the
local machine, otherwise it will be started on the server.
Note that only on BW the tgyenox.yes should be used, in which
case a: "create.object(DsCapplication, 0, ...)" will be done.
In all other cases either a "shell()" or "run.prog()" will be
done depending on the current Baan version.
This function does NOT check whether the current platform is BW.
mode the mode needed for "shell()" or "run.prog()"
pop_up whether (if true) or not (if false) pop-ups on errors must be
given. Default is: false.
Return value:
= 0 successful completion, application started
< 0 some error occurred
-------------------------------------------------------------------------------