Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Extract – PB Docs 2018 – PowerBuilder Library

Extract – PB Docs 2018

Extract

PowerScript function

Description

Extracts the compressed archive or data stream.

Applies to

ExtractorObject objects

Syntax

Argument

Description

objectname

The name of the ExtractorObject
object.

source

A string whose value is the full directory of the
compressed archive.

Or a blob whose value is the
compressed data stream.

dest

A string whose value is the directory where the
compressed archive will be extracted.

Or a blob whose
value is the decompressed stream.

format (optional)

A value of the enumerated datatype ArchiveFormat
specifying the the format of the source file. Values
are:

  • ArchiveFormatZIP! : zip file. This is the default
    value.

  • ArchiveFormat7Zip! : 7zip file.

  • ArchiveFormatRAR! : gzip file.

  • ArchiveFormatGZip!: gzip format archive.

  • ArchiveFormatTAR!: tar format archive.

  • ArchiveFormatLZMA! : tar format archive.

  • ArchiveFormatLZMA86! : tar format archive.

  • ArchiveFormatCAB! : cab format archive.

  • ArchiveFormatISO! : iso format archive.

Return value

Integer.

Returns the following value. If any argument’s value is null, the
method returns null.

1 — Success

-1 — A general error occurred.

-2 — The password entered is illegal.

-3 — The operation is not supported for the source file
format.

-4 — The task thread is aborted.

-5 — A task thread is currently running.

-6 — No password is entered. You must enter the password.

-7 — The password is incorrect.

-8 — Failed to get new memory when saving the decompressed
file.

-9 — Failed to read the compressed file.

-10 — Unrecognized format.

-11 — Access denied when extracting the archive.

-12 — The compressed file does not exist.

-13 — The directory where the decompressed file will be saved does
not exist.

-14 — Failed to extract the compressed file.

Example 1

This example demonstrates how to extract a file.

Example 2

This example demonstrates how to extract a data stream.

See also

Cancel


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x