i go to the forum for help but frequently end up spending all kinds of time looking at code that does not work for one reason or another.... being very new to B4A i am looking for simple strait forward examples.... the documentation for "copy" and "copy2" does not explain why both are needed and doing so might be useful along with concrete code examples.. ARE there actual working code examples anywhere to be seen?
SOMETHING LIKE.....
Dim SourceFile, DestinationFile As String
SourceFile = "SRCFILE" ' Define source file name.
DestinationFile = "DESTFILE" ' Define target file name.
Copy(SourceFile, DestinationFile) ' Copy source to target.
FOLLOWED BY....(important)
Dim SourceFile, DestinationFile As String
SourceFile = "/mnt/sdcard/testfile.csv"
DestinationFile = "/mnt/sdcard/external_sd/Books/testfile.csv"
Copy(SourceFile, DestinationFile)
i'm just guessing at the above and do not know if a file can be renamed during the operation
i'd think it very useful if something like the above were included as a part of the explanation for "copy" and "copy2"
can i find the sort of guidance given by the "FOLLOWED BY.." sample above?
SOMETHING LIKE.....
Dim SourceFile, DestinationFile As String
SourceFile = "SRCFILE" ' Define source file name.
DestinationFile = "DESTFILE" ' Define target file name.
Copy(SourceFile, DestinationFile) ' Copy source to target.
FOLLOWED BY....(important)
Dim SourceFile, DestinationFile As String
SourceFile = "/mnt/sdcard/testfile.csv"
DestinationFile = "/mnt/sdcard/external_sd/Books/testfile.csv"
Copy(SourceFile, DestinationFile)
i'm just guessing at the above and do not know if a file can be renamed during the operation
i'd think it very useful if something like the above were included as a part of the explanation for "copy" and "copy2"
can i find the sort of guidance given by the "FOLLOWED BY.." sample above?