Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Installation
»
Linux
»
How can I give a value back to program that start me?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
controls.lpr(731,15) Erro...
by
dseligo
[
Today
at 03:31:46 pm]
[Solved] Can't install mo...
by
lainz
[
Today
at 03:28:41 pm]
Questions about GUID decl...
by
Thaddy
[
Today
at 03:24:47 pm]
internal Compiler Error
by
Thaddy
[
Today
at 03:21:04 pm]
Reference to bsSolid give...
by
wp
[
Today
at 03:09:17 pm]
[Solved]Open Project fail...
by
cdbc
[
Today
at 03:06:30 pm]
Popup Form to close when ...
by
Thaddy
[
Today
at 02:10:55 pm]
Spikey Splat Creatures fr...
by
Boleeman
[
Today
at 01:19:35 pm]
Amigo programming languag...
by
paxscript
[
Today
at 12:20:33 pm]
Input Chinese using Micro...
by
momigo
[
Today
at 10:50:40 am]
Ballet of Lines and Dots ...
by
Boleeman
[
Today
at 09:19:59 am]
Using icons in own open s...
by
paule32
[
Today
at 08:14:05 am]
ChatGPT and ObjectPascal ...
by
Thaddy
[
Today
at 07:56:29 am]
control '' has no parent
by
Thaddy
[
Today
at 07:23:07 am]
Converting excel to csv -...
by
andresayang
[
Today
at 01:44:28 am]
Persistent MacOS Arm M ch...
by
BVale
[
Today
at 12:05:12 am]
Original game - 3 Cross
by
TBMan
[
Today
at 12:01:24 am]
Exporting larger files
by
Guser979
[July 08, 2025, 11:55:04 pm]
json goes RichMemo
by
Thaddy
[July 08, 2025, 08:52:20 pm]
MDI ChildForm
by
CharlyTango
[July 08, 2025, 08:41:25 pm]
Fern Leaf Fractal (Recurs...
by
Lulu
[July 08, 2025, 07:54:23 pm]
Trouble compiling fpc for...
by
ermok
[July 08, 2025, 06:21:06 pm]
Feature request: hard typ...
by
440bx
[July 08, 2025, 05:53:44 pm]
Lazarus 4 and TAChart Hin...
by
Nicole
[July 08, 2025, 05:13:38 pm]
Pappas Chain Ring: Not Ro...
by
Boleeman
[July 08, 2025, 01:06:20 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can I give a value back to program that start me? (Read 4468 times)
Fred556
New Member
Posts: 26
How can I give a value back to program that start me?
«
on:
November 03, 2009, 03:10:01 pm »
Hello,
how can I give a value back to program that start me? A simple string is enough or a errorlevel in pure FPC code.
Thank you very much...
Logged
Programmer Software
and other copy protection tools.
theo
Global Moderator
Hero Member
Posts: 1932
Re: How can I give a value back to program that start me?
«
Reply #1 on:
November 03, 2009, 04:05:01 pm »
Do you mean like this?
WriteLn('response');
or
WriteLn(StdErr,'error');
Logged
Fred556
New Member
Posts: 26
Re: How can I give a value back to program that start me?
«
Reply #2 on:
November 03, 2009, 04:14:37 pm »
Hello,
thank you for your replay. I mean on Linux and way Win32.
When a other program start my program. How can I give the other program information back?
Logged
Programmer Software
and other copy protection tools.
Marc
Administrator
Hero Member
Posts: 2649
Re: How can I give a value back to program that start me?
«
Reply #3 on:
November 03, 2009, 11:41:25 pm »
you can also assign a value the the ExitCode variable. This is the same as the DOS errorlevel
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Installation
»
Linux
»
How can I give a value back to program that start me?
TinyPortal
© 2005-2018