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
Getting name / line of ca...
by
Zvoni
[
Today
at 08:17:09 am]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[
Today
at 07:59:58 am]
Qt does not position form...
by
zeljko
[
Today
at 07:27:14 am]
How to compare floating p...
by
valdir.marcos
[
Today
at 06:24:19 am]
Limiting Search in TSelec...
by
dsiders
[
Today
at 05:29:01 am]
using make with a differe...
by
Thausand
[
Today
at 12:04:50 am]
FPC Unleashed (inline var...
by
440bx
[May 10, 2026, 10:52:58 pm]
RunFormula: math expressi...
by
valdir.marcos
[May 10, 2026, 10:49:20 pm]
Help with FPReport data b...
by
Dankan1890
[May 10, 2026, 10:08:22 pm]
Scripts to generate ofici...
by
marcov
[May 10, 2026, 09:28:54 pm]
How do 'with' statements ...
by
Warfley
[May 10, 2026, 09:13:18 pm]
FpDebug for Linux AARCH64
by
Martin_fr
[May 10, 2026, 08:21:58 pm]
Label with multiple lines...
by
wp
[May 10, 2026, 06:30:51 pm]
TStringGrid displaying a ...
by
jamie
[May 10, 2026, 05:18:04 pm]
Application.QueueAsyncCal...
by
Thaddy
[May 10, 2026, 03:17:23 pm]
Windows API Hooking/DLL I...
by
Thaddy
[May 10, 2026, 01:08:56 pm]
TComboBoxEx & TCheckCombo...
by
Paolo
[May 10, 2026, 11:28:00 am]
DataPort or Synpase stat...
by
serbod
[May 10, 2026, 09:30:51 am]
SynEdit auto End of line ...
by
Martin_fr
[May 10, 2026, 09:08:36 am]
Show Case: WritingTool
by
ginoo
[May 10, 2026, 08:47:02 am]
How to view the TODO list...
by
Thaddy
[May 10, 2026, 07:16:27 am]
International Pascal Cong...
by
Mike.Cornflake
[May 09, 2026, 06:45:37 pm]
SpreadSheet Add Chart Lin...
by
eldonfsr
[May 09, 2026, 06:19:33 pm]
How to access inherited m...
by
Thaddy
[May 09, 2026, 04:12:38 pm]
Anubis activated
by
LemonParty
[May 09, 2026, 03:46:01 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can I give a value back to program that start me? (Read 4618 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: 1946
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: 2695
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