Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Copyfile(Edit2.Text, Edit3.Text); Inkompatible Typen... (https://www.delphipraxis.net/18968-copyfile-edit2-text-edit3-text-%3B-inkompatible-typen.html)

Toenn 26. Mär 2004 18:14


Copyfile(Edit2.Text, Edit3.Text); Inkompatible Typen...
 
Hi :P,
wenn ich Copyfile(Edit2.Text, Edit3.Text); mache, kommt eine Fehlermeldung "Inkompatible Typen: "Pansichar" und "TStrings""

Wie kann ich dat converten :gruebel: ?

ThX,
Tuenn

Markus K. 26. Mär 2004 18:18

Re: Copyfile(Edit2.Text, Edit3.Text); Inkompatible Typen...
 
Hallo tuenn,
so müsste das gehen.
Delphi-Quellcode:
Copyfile(PChar(Edit2.Text), PChar(Edit3.Text), );
PS: Die Funktion CopyFile besitzt 3 Parameter.

Tschüß Markus

Toenn 26. Mär 2004 18:28

Re: Copyfile(Edit2.Text, Edit3.Text); Inkompatible Typen...
 
nähmlich True :)

thx,
tuenn


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:29 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz