I have a small Delphi 2009-application that serves as a way to call some SQL procedures and do some background work.
It can be called with a path to a text file containing a SQL statement as input parameter and executes it.
Now I want the Delphi-application to return an output value, a string.
I found how to deal with output values when calling applications from a batch file (How do I get the result of a command in a variable in windows?), but I don't know how to fill this value from within Delphi. Where in Delphi do I assign my string value to some kind of output parameter, so the calling batch file can use the value?
Thanks