revZipReplaceItemWithData

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revZipReplaceItemWithData <archivePath>, <itemName>, <variableName>
Summary

Replaces the contents of an item in a zip archive with the contents of a variable.

Introduced2.7.3
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
archivePath

The absolute path to the zip archive to process.

itemName

The name of the item in the zip archive to replace.

variableName

The name of the variable in your program containing the data to replace with. If the revZipReplaceItemWithData command encounters an error then the result will be set to an error code beginning with "ziperr", otherwise the result will be empty.

Example
revZipReplaceItemWithData tArchive, "myZippedItem", "tData"
revZipReplaceItemWithData the cArchive of me, "Test.txt", "tNewTest"
RelatedCommand: revZipOpenArchive, revZipAddItemWithData, revZipReplaceItemWithFile
Securitydisk, network
Description

Use the revZipReplaceItemWithData command to put the contents of a variable in your LiveCode program into one of the items of an open zip archive. The archive must have first been opened with the revZipOpenArchive command.

Tagstext processing