Home » Developer & Programmer » Forms » External app
External app [message #151911] Mon, 19 December 2005 17:13 Go to next message
dlaw65
Messages: 8
Registered: September 2005
Location: jamaica
Junior Member
Hi

Can I run an external exe app from a when-button-pressed trigger? If the exe expects input parameters and outputs a code can these also be processed by forms 6i? If so, how do I acheive this?

Thanks.
Re: External app [message #151925 is a reply to message #151911] Mon, 19 December 2005 18:53 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Search this forum for 'host' and 'ora_ffi'

What version of Forms are you running and in what environment?

David
Re: External app [message #152020 is a reply to message #151925] Tue, 20 December 2005 09:30 Go to previous messageGo to next message
dlaw65
Messages: 8
Registered: September 2005
Location: jamaica
Junior Member
Forms 6i for Windows.
Re: External app [message #152530 is a reply to message #151911] Fri, 23 December 2005 12:14 Go to previous messageGo to next message
dlaw65
Messages: 8
Registered: September 2005
Location: jamaica
Junior Member
Correct me if I'm wrong but I beleive the 'host' built-in only provides the means to call the app as if from the OS command line. It doesn't seem to allow for any return from the app. Also the ora_ffi package seems to be for DLL's not exe.
Re: External app [message #152732 is a reply to message #152530] Mon, 26 December 2005 20:09 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You can create a '.bat' file using text_io, put the environment and commands into it directing it to place the result into another file, then use d2kwutil or host to run the 'bat' file. Then read he results back using text_io again.

Does this sound useable to you?

David
Previous Topic: Implement procedure creating in sql to a form Program unit
Next Topic: rotate and saves the rotated image
Goto Forum:
  


Current Time: Fri Sep 20 05:31:12 CDT 2024