[Gambas-user] Move ... Kill function (File & Directory Functions)

Fabien Bodard gambas.fr at gmail.com
Sun Sep 23 16:03:50 CEST 2018


The second part yes

Le dim. 23 sept. 2018 16:02, Hans Lehmann <hans at gambas-buch.de> a écrit :

> Hello Fabien,
>
> thank you very much for the short explanation - fits.
> The function chain 'MOVE OldName KILL NewName' obviously replaces the
> following source code:
>
> If Not (Exist(sDestinationPath & sFileName)) Then
>     Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName
> Else
>     Kill sDestinationPath &/ sFileName
>     Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName
>     If Error Then
>        Message.Error("Error! " & Error.Text)
>        Return
>     Endif
> Endif
>
> Is this correct?
>
> Yours sincerely
>
> Hans
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180923/e58c6576/attachment.html>


More information about the User mailing list