Autor Beitrag
Supernova
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Mo 19.01.04 19:15 
Wie kann ich einen neuen Ordner erstellen?

Moderiert von user profile iconTino: Topic neu erstellt (gesplittet) und deshalb diesen Beitrag geändert.
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.01.04 19:18 
Zitat:
procedure MkDir(S: string);

Beschreibung

MkDir legt in dem mit S angegebenen Pfad ein neues Unterverzeichnis an. Das letzte Element der Pfadangabe darf kein Name einer vorhandenen Datei sein.


gruß

ixtreme.de
Supernova Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Mo 19.01.04 19:33 
Würde des dann Praktisch so funzen :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Procedure.TFormButton1.Click(Sender.Tobject
begin
procedure MkDir(Label1.Caption: string); 
end;

end.


**************SUPERNOVA****************

Moderiert von user profile iconPeter Lustig: Doppelpost gelöscht
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.01.04 19:39 
Wenn in Edit1.Text der Pfad drin stehen sollte...dann musst du's so machen
ausblenden Delphi-Quelltext
1:
MkDir(pfadangabe + Edit1Text);					


gruß

ixtreme.de

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
Supernova Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Mo 19.01.04 19:41 
Aber so wie ich das Geschrieben habe Mit LABEL! wird es funzen oder ?? :?:
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.01.04 19:45 
was steht denn in label1.caption?

wenn das zu erstellende Verzeichnis drin steht ja...


gruß

ixtreme.de
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.01.04 19:46 
Warum probierst du es nicht aus? Es wird nicht funzen.

ausblenden Delphi-Quelltext
1:
procedure MkDir(Label1.Caption: string);					


Wird für die Deklaration verwendet.

Wenn du es aufrufst, weiß der Compiler schon, dass es eine procedure ist, und auch welchen Typ die Parameter haben.

ausblenden Delphi-Quelltext
1:
MkDir(Label1.Caption);					
Supernova Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Mo 19.01.04 19:48 
Ich hab ja oben gelernt wie mann einen Pfad anzeigen lässt ,nich ?.
Also steht in Label.Caption der Pfad drinne.

Moderiert von user profile iconTino: Weiter Frage entfernt. Neues Topic erstellen.