Changeset 233 for Include/Classes/System/Version.ab
- Timestamp:
- May 6, 2007, 8:37:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Version.ab
r212 r233 57 57 End Function 58 58 59 Const Function MajorR ivision() As Integer59 Const Function MajorRevision() As Integer 60 60 Return HIWORD(revision) As Integer 61 61 End Function 62 62 63 Const Function MinorR ivision() As Integer63 Const Function MinorRevision() As Integer 64 64 Return LOWORD(revision) As Integer 65 65 End Function … … 72 72 CompareTo = build - v.build 73 73 If CompareTo <> 0 Then Exit Function 74 CompareTo = r ivision - v.rivision74 CompareTo = revision - v.revision 75 75 End Function 76 76 … … 80 80 81 81 Override Function GetHashCode() As Long 82 Return _System_BSwap(major As DWord) Xor minor Xor build Xor _System_BSwap(r ivision As DWord)82 Return _System_BSwap(major As DWord) Xor minor Xor build Xor _System_BSwap(revision As DWord) 83 83 End Function 84 84 … … 111 111 If build >= 0 Then 112 112 ToString = ToString + "." + Str$(build) 113 If r ivision >= 0 Then114 ToString = ToString + "." + Str$(r ivision)113 If revision >= 0 Then 114 ToString = ToString + "." + Str$(revision) 115 115 End If 116 116 End If … … 136 136 If fieldCount = 3 Then Exit Function 137 137 138 If r ivision < 0 Then138 If revision < 0 Then 139 139 ' Throw ArgumentException 140 140 Debug 141 141 End If 142 ToString = ToString + "." + Str$(r ivision)142 ToString = ToString + "." + Str$(revision) 143 143 End Function 144 144 Private … … 146 146 minor As Long 147 147 build As Long 148 r ivision As Long148 revision As Long 149 149 End Class 150 150
Note:
See TracChangeset
for help on using the changeset viewer.