AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Fehler in Dokumentation?

Ein Thema von Andreas L. · begonnen am 11. Sep 2007 · letzter Beitrag vom 11. Sep 2007
Antwort Antwort
Andreas L.
(Gast)

n/a Beiträge
 
#1

Fehler in Dokumentation?

  Alt 11. Sep 2007, 15:26
Hi,
in der Delphi-Hilfe steht, dass der letzte Parameter von CopyFile angibt ob die Datei überschrieben werden soll wenn sie existiert.

true = Überschreiben
false = nicht überschreiben

Wenn ich True verwende wird nicht überschrieben, mit false schon.

Ist da etwas falsch dokumentiert?
  Mit Zitat antworten Zitat
s-off
(Gast)

n/a Beiträge
 
#2

Re: Fehler in Dokumentation?

  Alt 11. Sep 2007, 15:30
Zitat von Andreas L.:
Ist da etwas falsch dokumentiert?
Nein, denn die Hilfe (BDS2006) meint dazu
Zitat:
bFailIfExists
[in] If this parameter is TRUE and the new file specified by lpNewFileName already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.
  Mit Zitat antworten Zitat
Andreas L.
(Gast)

n/a Beiträge
 
#3

Re: Fehler in Dokumentation?

  Alt 11. Sep 2007, 15:34
Zitat:
Copies one or more files from one location to another.

object.CopyFile ( source, destination[, overwrite] )

Arguments
object
Required. The object is always the name of a FileSystemObject.
source
Required. Character string file specification, which can include wildcard characters, for one or more files to be copied.
destination
Required. Character string destination where the file or files from source are to be copied. Wildcard characters are not allowed.
overwrite
Optional. Boolean value that indicates if existing files are to be overwritten. If true, files are overwritten; if false, they are not. The default is true. Note that CopyFile will fail if destination has the read-only attribute set, regardless of the value of overwrite.
Das sagt meine Delphi-Hilfe.
  Mit Zitat antworten Zitat
s-off
(Gast)

n/a Beiträge
 
#4

Re: Fehler in Dokumentation?

  Alt 11. Sep 2007, 15:40
Zitat von Andreas L.:
Das sagt meine Delphi-Hilfe.
Man sollte schon wissen, in welchem Bereich man suchen muss - wenn Du für Win32 programmierst, dann doch wohl eher nicht bei 'Scripting Runtime Library', oder?

Zugegeben, die neue Hilfe ist ziemlich besch...

Jedenfalls ist die im PlatformSDK vorhandene CopyFile-Funktion das, was Du suchst.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:45 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