PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Merges several files into a single one. The files to use have been created during a previous split operation by fSplit.
Versions 21 and later
Java This function is now available for Java applications.
New in version 21
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Example
// Découpe le fichier Video.avi
fSplit("Video.avi", 100*1024*1024, "VideoDécoupée")
IF ErrorOccurred THEN
// Affiche le message d'erreur
Error(ErrorInfo())
RETURN
END
 
// Des fichiers "VideoDécoupée.001", "VideoDécoupée.002" ont été créés
// Suppression du fichier source "Video.avi"
fDelete("Video.avi")
 
// Utilise les fichiers "VideoDécoupée.001", "VideoDécoupée.002"
// pour recréer le fichier "Video.avi"
fMerge("VideoDécoupée", "Video.avi")
IF ErrorOccurred THEN
// Affiche le message d'erreur
Error(ErrorInfo())
RETURN
END
Syntax
<Result> = fMerge(<File name> [, <Output file> [, <Option> [, <Progress Bar control>]]])
<Result>: Integer
  • Number of merged files,
  • 0 if an error occurs. To get the details of the error, use ErrorInfo with the errMessage constant.
    Remark: in case of error, the output files must be found on disk.
<File name>: Character string (with quotes)
Full name of file to merge (without the ".001" extension).
<Output file>: Optional character string (with quotes)
Full path of file to create.
By default, <Output file> corresponds to <File name>.
<Option>: Optional Integer constant
By default:
  • the source files are kept during the merge operation.
  • if the output file already exists, the function returns an error.
You have the ability to specify the following merge options:
fDeleteDestinationIf the destination file already exists, it will be deleted then re-created.
fDeleteSourceThe source files will be deleted as the merge operation goes along.
Caution: If an error occurs, the source files will be LOST and they cannot be retrieved.
<Progress Bar control>: Optional control name
Name of the Progress Bar control used to follow the progress of the merge operation for the different parts of the file.
Component: wd260std.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment