In my program I want to start the editor of the OS where it is running to edit a SQL Statement.
In Windows and Linux it runs fine. The editor was started and my program waits until the editor is closed.
On MacOS the Editor is also started, but the program does not wait until the editor is closed.
Her the Coding:
Code: Select all
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_MacOS
RunProgram("open","spoc"+Str(ProgramID)+".txt" ,"",#PB_Program_Wait)
CompilerCase #PB_OS_Linux
RunProgram("gedit","spoc"+Str(ProgramID)+".txt","",#PB_Program_Wait)
CompilerCase #PB_OS_Windows
RunProgram("spoc"+Str(ProgramID)+".txt","","",#PB_Program_Wait)
CompilerEndSelect
regards
Jörg