PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Displaying an error message
  • Displaying an error message
zipMsgError (Example)
Displaying an error message
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC) The following codes displays an error message if a problem occurs when creating the archive. The name of the archive is entered in an edit control: EDT_ArchiveName. The path of the directory is selected by fSelectDir.
// Declare and initialize the variables
ArchiveName is string
ArchivePath is string
ResArchiveCreation is int
 
// Select the name of the archive. EDT_ArchiveName is edit control.
ArchiveName = EDT_ArchiveName
 
// Select the path of the archive
ArchivePath = fSelectDir("", "", "Selecting the directory")
 
// Create the archive named "MyArchive"
ResArchiveCreation = zipCreate(ArchiveName, ArchivePath)
 
// Display an error message if the archive was not created
IF ResArchiveCreation <> 0 THEN
Error(zipMsgError(ResArchiveCreation))
END
 
Displaying an error message
Windows Mobile The following codes displays an error message if a problem occurs when creating the archive. The name of the archive is entered in an edit control: EDT_ArchiveName.
// Declare and initialize the variables
ArchiveName is string
ArchivePath is string = "\Backup"
ResArchiveCreation is int
 
// Select the name of the archive. EDT_ArchiveName is edit control.
ArchiveName = EDT_ArchiveName
 
// Create the archive named "MyArchive"
ResArchiveCreation = zipCreate(ArchiveName, ArchivePath)
 
// Display an error message if the archive was not created
IF ResArchiveCreation <> 0 THEN
Error(zipMsgError(ResArchiveCreation))
END
 
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment