PASS ...
Posted in 1999
Topics: General Discussion
I'm interesting in how to pass parameter from command line to 4ge module, and how to manage it?? How to transfer parameters (or variable) from 4ge module to another 4ge module?
If you're talking about passing parameters to another 4ge PROGRAM (and not module) and expect a return here's what I would try: From PROGRAM1: DEFINE return_status INTEGER RUN "program2 param1 param2 param3 ..." RETURNING return_status In PROGRAM2 ... Check and use commandline parameters as explained (num_args() and arg_val(n)) ... and use EXIT PROGRAM exit_status where exit_status is an INTEGER (you can't pass anything else, sorry) If your two programs can access the same database, use a table as a communication pipe. INKO wrote: > I'm interesting in how to pass parameter from command line to 4ge > module, and how to manage it?? > How to transfer parameters (or variable) from 4ge module to another 4ge > module?