This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
UnRAR.ArchiveEntry.Operator_Compare
Andrew Lambert edited this page Nov 26, 2022
·
4 revisions
UnRAR.ArchiveEntry.Operator_Compare
Function Operator_Compare(OtherItem As UnRAR.ArchiveEntry) As Integer| Name | Type | Comment |
|---|---|---|
| OtherItem | ArchiveEntry | The ArchiveEntry to compare Self against. May be Nil. |
Returns 0 if OtherItem refers to the same archive and index as the current instance, otherwise non-zero.
This is an operator overload method, which means that special calling syntax is used. To invoke the Operator_Compare method, use a comparison expression, e.g.:
Dim rar As New UnRAR.Iterator(MyRarFile)
If Not rar.MoveNext(UnRAR.RAR_TEST) Then MsgBox("Error")
Dim r1 As UnRAR.ArchiveEntry = rar.CurrentItem
If Not rar.MoveNext(UnRAR.RAR_TEST) Then MsgBox("Error")
Dim r2 As UnRAR.ArchiveEntry = rar.CurrentItem
If r1 = r2 Then ' invoke Operator_Compare
MsgBox("Identical!")
Else
MsgBox("Different!")
End IfWiki home | Project page | Bugs
Text and code examples are Copyright ©2013-21 Andrew Lambert, offered under the CC BY-SA 3.0 License.