Title: Ask Reuben 242 - RUN vs launchUrl Post by: Reuben B. on August 30, 2024, 01:19:24 am There are a number of techniques you can use to start a child program. Key factors to take into your decision making include do you want the parent program to wait for the child program to finish? what information needs to be passed from the parent program to the child ? what environment will the child program launch in, are you in a desktop or web environment ? and are you using Genero Application Server ?
Read more at https://4js.com/ask-reuben/ig-242/ Title: Re: Ask Reuben 242 - RUN vs launchUrl Post by: Roland W. on August 30, 2024, 08:32:13 am Hello Reuben,
as an alternative to RUN I'm using the following code: Code
The main advantage is that I can check whether the command was executed successfully because I evaluate the return value. By using RUN this can become tricky (see https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_programs_RUN.html#c_fgl_programs_RUN__CATCH_EXECUTION_STATUS (https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_programs_RUN.html#c_fgl_programs_RUN__CATCH_EXECUTION_STATUS)). Kind regards Roland |