2011年10月21日 星期五

TIPTOP_4GL開啟外部exe

最近公司在做TIPTOP與艾碼SPC的整合,決定由TIPTOP中呼叫艾碼所提供的中介程式
去進行SPC數據的輸入
經同事查詢的結果,4GL還真的有支援開啟外部EXE,並帶參數進去
路徑說明:CALL WINEXEC("D:\xxx.EXE "ABC","DEF"")

以下為4GL官網文件的說明
WINEXEC( ) MS Windows FE Only!

Purpose:

This function executes a program on the machine where the Windows Front End runs and returns immediately.

Context:

  1. At any place in the program, but only after the first instruction has displayed something on the front end.

Syntax:

CALL WINEXEC( command STRING )
 RETURNING result INTEGER

Notes:

  1. command is the command to be executed on the front end.
  2. The function executes the program without waiting.
  3. The function returns FALSE if a problem has occurred.

沒有留言:

張貼留言