Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

UnRAR.Iterator.MoveNext

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

UnRAR.Iterator.MoveNext

Method Signature

Function MoveNext(ProcessingMode As Integer, ExtractPath As FolderItem = Nil) As Boolean

Parameters

Name Type Comment
ProcessingMode Integer The action to take when processing the current item (RAR_EXTRACT, RAR_SKIP, or RAR_TEST)
ExtractPath FolderItem Optional. The target file or folder into which the item should be extracted.

Return Value

Returns True if the item was successfully processed and the next item is ready. On error or end-of-archive, returns False. Check LastError if this method returns False.

Notes

Calling this method will apply the ProcessingMode to the CurrentItem and then advance the CurrentItem by one.

If ProcessingMode is RAR_EXTRACT then pass a FolderItem to extract into. Pass a directory to extract the item into the directory using the item name (automatically creating subdirectories as needed); pass a non-existing file to extract directly into the file.

If processing mode is RAR_TEST or RAR_SKIP then pass Nil as (or omit) ExtractPath.

Clone this wiki locally