Autor Beitrag
Thunder00
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52



BeitragVerfasst: Sa 05.04.03 19:00 
Hallo,

Ich möchte ein Proggi schreiben, was, wenn man es so startet, die Hauptform anzeigt und wenn man es über ein Parameter wie "-x" oder "/x" startet, eine bestimmte Unit bzw. bestimmte Prozedur/bestimmte Befehle abarbeitet.

Wie mache ich das?
Vielen Dank im Voraus.
Andreas

_________________
If you can't make it good, at least make it looks good. (Bill Gates)
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Sa 05.04.03 19:16 
Psycho_DK
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Sa 05.04.03 19:19 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.create(sender: TObject);
var
 i: Integer;
 str: String;
begin
  i := 1;
  str := '';
  while i <= ParamCount do begin
    str := str+ParamStr(i)+' ';
    inc(i);
  end;
  str := copy(str,0,length(str)-1);
  //in str sind jetzt die Parameter
end;

so ähnlich habe ich das mal geschrieben...