Changeset 497 for trunk/Include/Classes/System/Version.ab
- Timestamp:
- Mar 28, 2008, 5:43:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Version.ab
r257 r497 1 ' System/Version.ab 2 3 #ifndef __SYSTEM_VERSION_AB__ 4 #define __SYSTEM_VERSION_AB__ 5 6 #require <api_winsock2.sbp> 1 ' Classes/System/Version.ab 7 2 8 3 Namespace System … … 121 116 Function ToString(fieldCount As Long) As String 122 117 If fieldCount < 0 Or fieldCount > 4 Then 123 ' Throw ArgumentException 124 Debug 118 Throw New ArgumentOutOfRangeException("fieldCount") 125 119 End If 126 120 ToString = "" … … 132 126 133 127 If build < 0 Then 134 ' Throw ArgumentException 135 Debug 128 Throw New ArgumentException 136 129 End If 137 130 ToString = ToString + "." + Str$(build) … … 139 132 140 133 If revision < 0 Then 141 ' Throw ArgumentException 142 Debug 134 Throw New ArgumentException 143 135 End If 144 136 ToString = ToString + "." + Str$(revision) … … 152 144 153 145 End Namespace 'System 154 155 #endif '__SYSTEM_VERSION_AB__
Note:
See TracChangeset
for help on using the changeset viewer.