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
Recent
[SOLVED]Program experienc...
by
marcov
[
Today
at 11:22:38 am]
Single and Double, Conver...
by
MathMan
[
Today
at 10:36:23 am]
MOVED: Eye Candy TESCheme
by
theo
[
Today
at 10:06:43 am]
Which Control should I us...
by
J-G
[
Today
at 09:34:46 am]
storing assets for releas...
by
Handoko
[
Today
at 08:35:23 am]
What am I missing here? [...
by
Handoko
[
Today
at 05:45:28 am]
TCHATGPT — An Artificial ...
by
marcelomaurinmartins@gmai
[
Today
at 02:20:11 am]
[New Component] ExtTabCtr...
by
d7_2_laz
[
Today
at 12:40:37 am]
Mundo Medieval 3D MMORPG ...
by
Rodrigo Robles
[June 14, 2026, 05:26:38 pm]
Fast Canvas Library V1.05...
by
Gigatron
[June 14, 2026, 04:57:35 pm]
Can /my/ AI help me with ...
by
microxa
[June 14, 2026, 02:25:12 pm]
SynEdit theme
by
LemonParty
[June 14, 2026, 02:01:33 pm]
What happened to CocoaWSC...
by
Frank
[June 14, 2026, 01:31:19 pm]
Very rough version of a s...
by
Hansvb
[June 14, 2026, 12:44:31 pm]
Pdf Viewer in Pascal
by
Dzandaa
[June 14, 2026, 11:44:26 am]
Lazarus Bugfix Release 4....
by
Martin_fr
[June 13, 2026, 11:02:41 pm]
Error with last fixes_3.2...
by
Fred vS
[June 13, 2026, 10:49:27 pm]
Lazarus 4.8 on Sourceforg...
by
Enos68
[June 13, 2026, 08:00:47 pm]
Conscious Artificial Inte...
by
Dzandaa
[June 13, 2026, 05:59:22 pm]
If FileExists(
by
Bart
[June 13, 2026, 05:57:26 pm]
docked IDE and form capti...
by
Paolo
[June 13, 2026, 02:53:50 pm]
New version of LazMapView...
by
wp
[June 13, 2026, 12:09:27 pm]
PadXml 1.1.0 – Portable A...
by
AlexanderT
[June 13, 2026, 10:38:42 am]
Arkanoid
by
Tomi
[June 13, 2026, 09:46:46 am]
Interesting video
by
Joanna
[June 13, 2026, 06:24:53 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can I give a value back to program that start me? (Read 4620 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: 1947
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: 2706
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