Autor Beitrag
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 25.09.07 07:52 
Ich habe über Start -> Parameter unter Parameter "/PU" eingetragen. Nach dem Starten des Programms ist ParamCount aber nur 1 und der Parameter ist weg.
Muss ich noch etwas einstellen oder ist das ein BUG?

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 25.09.07 08:11 
Fängt ParamCount/Paramstr nicht bei 0 an? :gruebel:

D.h. ParamCount = 1, dann gibts einen Parameter (nämlich Paramstr(1)), und Paramstr(0) ist der Name der exe?

_________________
We are, we were and will not be.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 25.09.07 08:26 
Delphi-Hilfe hat folgendes geschrieben:
ParamCount gibt die Anzahl der in der Kommandozeile an die Anwendung übergebenen Parameter zurück.
Dazu zählt meines Wissens nicht der Parameter "0". Also eigentlich alles richtig bei Dir.
Kroko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 25.09.07 11:32 
Na klasse, alles fängt bei 0 nur ParamStr nicht, :D ,

okay Problem gelöst, DENK-Fehler !

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!