Autor Beitrag
g1o2k4
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Fr 27.06.08 08:42 
hallo

in c,c++ und java kann man den ausführbaren dateien ja startparamter übergeben.

z.b. java:
ausblenden Quelltext
1:
public static void main(String [] args)					


anschließend kann man aus dem argument array die daten benutzen...
wie geht sowas in delphi ?
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Fr 27.06.08 08:44 
ausblenden Quelltext
1:
ParamStr(i)					
iKilledKenny
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 8

Win XP
D5 Prof, C# Express 2005
BeitragVerfasst: Fr 27.06.08 08:53 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
for i := 1 to ParamCount do
  begin
    Item := AnsiUppercase (ParamStr (i));
    if (Item = 'WAS_WEISS_ICH') then
      begin
      end;
  end;


Mit ParamCount und ParamStr findest du die übergebenen Parameter.
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Fr 27.06.08 09:17 
thx klappt.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 27.06.08 10:10 
Moin!

Haben wir auch in der FAQ einen Beitrag zu. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.