You are previewing Microsoft® Visual Basic® .NET Language Reference.
O'Reilly logo
Microsoft® Visual Basic® .NET Language Reference

Book Description

Here’s official documentation for the Visual Basic .NET language, including descriptions of language and run-time elements including attributes, data types, functions, methods, objects, operators, properties, statements, and more.

Table of Contents

  1. Microsoft® Visual Basic® .NET: Language Reference
    1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
    2. Before You Begin
      1. Typographic and Code Conventions
        1. Typographic Conventions
        2. Code Conventions
    3. 1. Introduction to Visual Basic .NET
      1. Language Changes in Visual Basic
        1. Programming Element Support Changes Summary
          1. See Also
        2. Array Changes
          1. Array Bound Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          2. Array Size Declaration Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. Number of Dimensions
            4. See Also
          3. ReDim Statement Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
        3. Control Flow Changes
          1. Control Statement Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          2. Exception Handling Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
        4. Data Type Changes
          1. Data Type Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          2. Integer Data Type Changes in Visual Basic
            1. See Also
          3. Universal Data Type Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
        5. Declaration Changes
          1. Declaration Syntax Changes in Visual Basic
            1. Multiple Variable Declaration
              1. Visual Basic 6.0
            2. Visual Basic .NET
          2. External Procedure Declaration
            1. Visual Basic 6.0
            2. Visual Basic .NET
          3. Line Label Declaration
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          4. String Length Declaration Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          5. Structure Declaration Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          6. Variable Scope Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
        6. Function Changes
          1. Format Function Changes in Visual Basic
            1. Date/Time Format
              1. Visual Basic 6.0
              2. Visual Basic .NET
            2. Numeric Format
              1. Visual Basic 6.0
          2. Visual Basic .NET
            1. String Format
              1. Visual Basic 6.0
              2. Visual Basic .NET
              3. See Also
          3. Date and Time Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          4. String ($) Function Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
        7. Object and Component Changes
          1. Object Creation Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. Parameterized Constructors
            4. See Also
          2. Binary Compatibility Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          3. Class and Interface Changes in Visual Basic
            1. Implements Statement
              1. Visual Basic 6.0
              2. Visual Basic .NET
            2. Late Binding
              1. Visual Basic 6.0
              2. Visual Basic .NET
            3. Global Classes
              1. Visual Basic 6.0
              2. Visual Basic .NET
            4. Option Private Module Statement
              1. Visual Basic 6.0
              2. Visual Basic .NET
            5. Default Members
              1. Visual Basic 6.0
              2. Visual Basic .NET
            6. Initialization and Termination
              1. Visual Basic 6.0
              2. Visual Basic .NET
            7. Indeterminate Lifetime
              1. Visual Basic 6.0
              2. Visual Basic .NET
              3. See Also
        8. Procedure Changes
          1. Parameter Passing Mechanism Changes in Visual Basic
            1. Default Passing Mechanism
              1. Visual Basic 6.0
              2. Visual Basic .NET
            2. ByRef Property Arguments
              1. Visual Basic 6.0
              2. Visual Basic .NET
          2. ParamArray Arguments
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          3. Procedure Calling Sequence Changes in Visual Basic
            1. Parentheses in Procedure Calls
              1. Visual Basic 6.0
              2. Visual Basic .NET
          4. Return Statement
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          5. Procedure Declaration Changes in Visual Basic
            1. Optional Arguments
              1. Visual Basic 6.0
              2. Visual Basic .NET
            2. Static Local Variables
              1. Visual Basic 6.0
              2. Visual Basic .NET
              3. See Also
        9. Property Changes
          1. Default Property Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. Parameterized Properties
            4. Default Property Declaration
            5. See Also
          2. Property Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
        10. Miscellaneous Changes
          1. Boolean Operator Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
          2. File Handling Changes in Visual Basic
            1. Visual Basic 6.0
            2. Visual Basic .NET
            3. See Also
      2. Overview of Visual Basic Concepts
        1. Classes
          1. Constants
            1. Constructors
            2. Data types
            3. Directives
            4. Enumerations
            5. Fields
            6. Functions
            7. Keywords
            8. Methods
            9. Objects
            10. Operators
            11. Properties
            12. Statements
      3. Visual Basic Language Keywords
    4. 2. A–Z Reference
      1. #Const Directive
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      2. #ExternalSource Directive
        1. Parts
        2. Remarks
      3. #If...Then...#Else Directives
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      4. #Region Directive
        1. Parts
        2. Remarks
        3. Example
      5. & Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      6. &= Operator
        1. Parts
        2. Example
        3. See Also
      7. * Operator
        1. Parts
        2. Result
        3. Supported Types
        4. Remarks
        5. Example
        6. See Also
      8. *= Operator
        1. Parts
        2. Example
        3. See Also
      9. + Operator
        1. Parts
        2. Result
        3. Supported Types
        4. Remarks
        5. Example
        6. See Also
      10. += Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      11. - Operator
        1. Syntax 1
        2. Syntax 2
        3. Parts
        4. Result
        5. Supported Types
        6. Remarks
        7. Example
        8. See Also
      12. -= Operator
        1. Parts
        2. Example
        3. See Also
      13. / Operator
        1. Parts
        2. Result
        3. Supported Types
        4. Remarks
        5. Example
        6. See Also
      14. /= Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      15. = Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      16. \ Operator
        1. Parts
        2. Supported Types
        3. Result
        4. Remarks
        5. Example
        6. See Also
      17. \= Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      18. ^ Operator
        1. Parts
        2. Result
        3. Supported Types
        4. Remarks
        5. Example
        6. See Also
      19. ^= Operator
        1. Parts
        2. Example
        3. See Also
      20. Add Method
        1. Parameters
        2. Exceptions/Error Codes
        3. Remarks
        4. Example
        5. See Also
        6. Applies To
      21. AddHandler Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      22. AddressOf Operator
        1. Remarks
        2. Example
        3. See Also
      23. Alias
        1. See Also
      24. And Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      25. AndAlso Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      26. Ansi
        1. See Also
      27. AppActivate Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      28. AppWinStyle Enumeration
        1. AppWinStyle Enumeration Members
        2. See Also
      29. As
        1. See Also
      30. Asc, AscW Functions
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      31. Assembly
      32. Auto
        1. See Also
      33. Beep Function
        1. Remarks
        2. Example
        3. See Also
      34. Boolean Data Type
        1. See Also
      35. ByRef
        1. See Also
      36. Byte Data Type
        1. See Also
      37. ByVal
        1. See Also
      38. Call Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      39. CallByName Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      40. CallType Enumeration
        1. CallType Enumeration Members
        2. See Also
      41. Case
        1. See Also
      42. Char Data Type
        1. See Also
      43. ChDir Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      44. ChDrive Function
        1. Parameter
        2. Exceptions/Errors
        3. Example
        4. See Also
      45. Choose Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      46. Chr, ChrW Functions
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      47. Class Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      48. Clear Method
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
        5. Applies To
      49. Collection Object
        1. Remarks
        2. Example
        3. See Also
      50. ComClassAttribute Class
        1. Remarks
        2. Example
        3. See Also
      51. ComClassAttribute Constructor
        1. Parameters
        2. Remarks
        3. See Also
      52. ComClassAttribute.ClassID Property
        1. Property Value
        2. Remarks
        3. See Also
      53. ComClassAttribute.EventID Property
        1. Property Value
        2. Remarks
        3. See Also
      54. ComClassAttribute.InterfaceID Property
        1. Property Value
        2. Remarks
        3. See Also
      55. ComClassAttribute.InterfaceShadows Property
        1. Property Value
        2. Remarks
        3. See Also
      56. Command Function
        1. Remarks
        2. Example
        3. See Also
      57. CompareMethod Enumeration
        1. CompareMethod Enumeration Members
        2. See Also
      58. Const Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      59. Count Property
        1. Example
        2. See Also
        3. Applies To
      60. CreateObject Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      61. CType Function
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      62. CurDir Function
        1. Parameter
        2. Exceptions/Errors
        3. Example
        4. See Also
      63. Date Data Type
        1. See Also
      64. DateAdd Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      65. DateDiff Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      66. DateFormat Enumeration
        1. See Also
      67. DateInterval Enumeration
        1. See Also
      68. DatePart Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      69. DateSerial Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      70. DateString Property
        1. Exceptions/Errors
        2. Remarks
        3. Example
        4. See Also
      71. DateValue Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      72. Day Function
        1. Parameter
        2. Example
        3. See Also
      73. DDB Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      74. Decimal Data Type
        1. See Also
      75. Declare Statement
        1. Parts
        2. attrlist Parts
        3. arglist Parts
        4. Remarks
        5. Example
        6. See Also
      76. Default
        1. See Also
      77. Delegate Statement
        1. Parts
        2. attrlist Parts
        3. arglist Parts
        4. Remarks
        5. Example
      78. DeleteSetting Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      79. Derived Math Functions
        1. See Also
      80. Description Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      81. Different Formats for Different Numeric Values (Format Function)
        1. See Also
      82. Dim Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      83. Dir Function
        1. Parameters
        2. Settings
        3. Remarks
        4. Example
        5. See Also
      84. DirectCast
      85. Do...Loop Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      86. Double Data Type
        1. See Also
      87. DueDate Enumeration
        1. See Also
      88. Each
        1. See Also
      89. Else
        1. See Also
      90. ElseIf
        1. See Also
      91. End
        1. Parts
        2. Remarks
        3. See Also
      92. End Statement
        1. Remarks
        2. Example
        3. See Also
      93. Enum Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      94. Environ Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      95. EOF Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      96. Erase Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      97. Erl Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      98. Err Object
        1. Remarks
        2. Example
        3. See Also
      99. Error
        1. See Also
      100. Error Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      101. ErrorToString Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      102. Event Statement
        1. Parts
        2. attrlist Parts
        3. arglist Parts
        4. Remarks
        5. Example
        6. See Also
      103. Exit Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      104. Explicit
        1. See Also
      105. False
        1. See Also
      106. FileAttr Function
        1. Parameter
        2. Exceptions/Errors
        3. Return Values
        4. Example
        5. See Also
      107. FileAttribute Enumeration
        1. FileAttribute Enumeration Members
        2. See Also
      108. FileClose Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      109. FileCopy Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      110. FileDateTime Function
        1. Parameter
        2. Exceptions/Errors
        3. Example
        4. See Also
      111. FileGet Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. See Also
      112. FileGetObject Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      113. FileLen Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      114. FileOpen Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      115. FilePut Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      116. FilePutObject Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      117. FileWidth Function
        1. Parameters
        2. Exceptions/Errors
        3. Example
        4. See Also
      118. Filter Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      119. FirstDayOfWeek Enumeration
        1. FirstDayOfWeek Enumeration Members
        2. See Also
      120. FirstWeekOfYear Enumeration
        1. FirstWeekOfYear Enumeration Members
        2. See Also
      121. For
        1. See Also
      122. For Each...Next Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      123. For...Next Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      124. Format Function
        1. Parameters
        2. Settings
        3. Remarks
        4. Example
        5. See Also
      125. FormatCurrency Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      126. FormatDateTime Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Example
        5. See Also
      127. FormatNumber Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      128. FormatPercent Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      129. FreeFile Function
        1. Exceptions/Errors
        2. Remarks
        3. Example
        4. See Also
      130. Friend
        1. See Also
      131. Function Statement
        1. Parts
        2. arglist Parts
        3. attrlist Parts
        4. Remarks
        5. Example
        6. See Also
      132. FV Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      133. Get Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      134. GetAllSettings Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      135. GetAttr Function
        1. Parameter
        2. Return Values
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      136. GetChar Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      137. GetEnumerator Method
        1. Remarks
        2. Example
      138. GetException Function
        1. Remarks
        2. Example
        3. See Also
      139. GetObject Function
        1. Parameters
        2. Class Parameters
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      140. GetSetting Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      141. GetType Operator
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      142. GoTo Statement
        1. Part
        2. Remarks
        3. Example
        4. See Also
      143. Handles
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      144. HelpContext Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      145. HelpFile Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      146. Hex Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      147. Hour Function
        1. Parameter
        2. Example
        3. See Also
      148. If...Then...Else Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      149. IIf Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      150. Implements
        1. See Also
      151. Implements Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      152. Imports Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      153. In
        1. See Also
      154. Inherits Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      155. Input Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      156. InputBox Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      157. InputString Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      158. InStr Function
        1. Parameters
        2. Settings
        3. Return Values
        4. Exceptions/Errors
        5. Example
        6. See Also
      159. InStrRev Function
        1. Parameters
        2. Settings
        3. Return Values
        4. Exceptions/Errors
        5. Remarks
        6. Example
        7. See Also
      160. Int, Fix Functions
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      161. Integer Data Type
        1. See Also
      162. Interface Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      163. IPmt Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      164. IRR Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      165. Is
        1. See Also
      166. Is Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      167. IsArray Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      168. IsDate Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      169. IsDBNull Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      170. IsError Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      171. IsNothing Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      172. IsNumeric Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      173. IsReference Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      174. Item Property
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
        6. Applies To
      175. Join Function
        1. Parameters
        2. Exceptions/Errors
        3. Example
        4. See Also
      176. Kill Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      177. LastDLLError Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      178. LBound Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      179. LCase Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      180. Left Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      181. Len Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      182. Lib
        1. See Also
      183. Like Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      184. LineInput Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      185. Loc Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      186. Lock, Unlock Functions
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      187. LOF Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      188. Long Data Type
        1. See Also
      189. Loop
        1. See Also
      190. LSet Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      191. LTrim, RTrim, and Trim Functions
        1. Parameter
        2. Example
        3. See Also
      192. Math Functions
        1. Remarks
        2. Requirements
        3. Abs Example
        4. Atan Example
        5. Cos Example
        6. Exp Example
        7. Log Example
        8. Round Example
        9. Sign Example
        10. Sin Example
        11. Sqrt Example
        12. Tan Example
        13. See Also
      193. Me
        1. See Also
      194. Mid Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      195. Mid Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      196. Minute Function
        1. Parameter
        2. Example
        3. See Also
      197. MIRR Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      198. MkDir Function
        1. Parameter
        2. Exceptions/Errors
        3. Example
        4. See Also
      199. Mod Operator
        1. Parts
        2. Result
        3. Supported Types
        4. Remarks
        5. Example
        6. See Also
      200. Module
        1. See Also
      201. Module Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      202. Month Function
        1. Parameter
        2. Example
        3. See Also
      203. MonthName Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      204. MsgBox Function
        1. Parameters
        2. Settings
        3. Return Values
        4. Exceptions/Errors
        5. Remarks
        6. Example
        7. See Also
      205. MsgBoxResult Enumeration
        1. MsgBoxResult Enumeration Members
        2. See Also
      206. MsgBoxStyle Enumeration
        1. MsgBoxStyle Enumeration Members
        2. See Also
      207. MustInherit
        1. See Also
      208. MustOverride
        1. See Also
      209. MyBase
        1. See Also
      210. MyClass
        1. See Also
      211. Namespace Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      212. New
        1. See Also
      213. Next
        1. See Also
      214. Not Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      215. Nothing
        1. See Also
      216. NotInheritable
        1. See Also
      217. NotOverridable
        1. See Also
      218. Now Property
        1. Remarks
        2. Example
        3. See Also
      219. NPer Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      220. NPV Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      221. Number Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      222. Object Data Type
        1. See Also
      223. Objects
        1. In This Section
        2. Related Sections
      224. Oct Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      225. Off
        1. See Also
      226. On
        1. See Also
      227. On Error Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      228. OpenAccess Enumeration
        1. See Also
      229. OpenMode Enumeration
        1. See Also
      230. OpenShare Enumeration
        1. See Also
      231. Operators Summary
        1. See Also
      232. Option
        1. See Also
      233. Option Compare Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      234. Option Explicit Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      235. Option Strict Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      236. Optional
        1. See Also
      237. Or Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      238. OrElse Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      239. Overloads
        1. See Also
      240. Overridable
        1. See Also
      241. Overrides
        1. See Also
      242. ParamArray
        1. See Also
      243. Partition Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
      244. Pmt Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      245. PPmt Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      246. Predefined Date/Time Formats (Format Function)
        1. See Also
      247. Predefined Numeric Formats (Format Function)
        1. See Also
      248. Preserve
        1. See Also
      249. Print and Display Constants
        1. ControlChars Module Members
        2. See Also
      250. Print, PrintLine Functions
        1. Parameters
        2. Output argument settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      251. Private
      252. Property Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      253. Protected
        1. See Also
      254. Public
      255. PV Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      256. QBColor Function
        1. Parameter
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      257. Raise Method
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
        6. Applies To
      258. RaiseEvent Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      259. Randomize Statement
        1. Part
        2. Remarks
        3. Example
        4. See Also
      260. Rate Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      261. ReadOnly
        1. See Also
      262. ReDim Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      263. REM Statement
        1. Parts
        2. Remarks
        3. Example
      264. Remove Method
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
        6. Applies to
      265. RemoveHandler Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      266. Rename Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      267. Replace Function
        1. Parameters
        2. Settings
        3. Return Values
        4. Exceptions/Errors
        5. Remarks
        6. Example
        7. See Also
      268. Reset Function
        1. Remarks
        2. Example
        3. See Also
      269. Resume
        1. See Also
      270. Resume Statement
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      271. Return Statement
        1. Part
        2. Remarks
        3. Example
        4. See Also
      272. Returns for CStr
        1. See Also
      273. RGB Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      274. Right Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      275. RmDir Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      276. Rnd Function
        1. Parameter
        2. Return Values
        3. Remarks
        4. Example
        5. See Also
      277. RSet Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      278. SaveSetting Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      279. ScriptEngine Property
        1. Remarks
        2. Example
        3. See Also
      280. ScriptEngineBuildVersion Property
        1. Remarks
        2. Example
        3. See Also
      281. ScriptEngineMajorVersion Property
        1. Remarks
        2. Example
        3. See Also
      282. ScriptEngineMinorVersion Property
        1. Remarks
        2. Example
        3. See Also
      283. Second Function
        1. Parameter
        2. Example
        3. See Also
      284. Seek Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      285. Select...Case Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      286. Set Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      287. SetAttr Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      288. Shadows
      289. Shared
      290. Shell Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      291. Short Data Type
        1. See Also
      292. Single Data Type
        1. See Also
      293. SLN Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      294. Source Property
        1. Remarks
        2. Example
        3. See Also
        4. Applies To
      295. Space Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      296. SPC Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      297. Split Function
        1. Parameters
        2. Settings
        3. Example
        4. See Also
      298. Static
      299. Step
        1. See Also
      300. Stop Statement
        1. Remarks
        2. Example
        3. See Also
      301. Str Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      302. StrComp Function
        1. Parameters
        2. Settings
        3. Return Values
        4. Exceptions/Errors
        5. Remarks
        6. Example
        7. See Also
      303. StrConv Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      304. StrDup Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      305. String Data Type
        1. See Also
      306. StrReverse Function
        1. Parameters
        2. Example
        3. See Also
      307. Structure Statement
        1. Parts
        2. attrlist Parts
        3. Remarks
        4. Example
        5. See Also
      308. Sub Statement
        1. Parts
        2. arglist Parts
        3. attrlist Parts
        4. Remarks
        5. Example
        6. See Also
      309. Switch Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      310. SYD Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      311. SyncLock Statement
        1. Parts
        2. Remarks
        3. Example
      312. SystemTypeName Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      313. TAB Function
        1. Parameters
        2. Remarks
        3. Example
        4. See Also
      314. Then
        1. See Also
      315. Throw Statement
        1. Part
        2. Remarks
        3. Example
        4. See Also
      316. TimeOfDay Property
        1. Remarks
        2. Example
        3. See Also
      317. Timer Property
        1. Remarks
        2. Example
        3. See Also
      318. TimeSerial Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      319. TimeString Property
        1. Exceptions/Errors
        2. Remarks
        3. Example
        4. See Also
      320. TimeValue Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      321. To
        1. See Also
      322. Today Property
        1. Remarks
        2. Example
        3. See Also
      323. Tristate Enumeration
        1. See Also
      324. True
        1. See Also
      325. Try...Catch...Finally Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      326. Type Conversion Functions
        1. Part
        2. Return Types
        3. Remarks
        4. CBool Example
        5. CByte Example
        6. CChar Example
        7. CDate Example
        8. CDbl Example
        9. CDec Example
        10. CInt Example
        11. CLng Example
        12. CObj Example
        13. CShort Example
        14. CSng Example
        15. CStr Example
        16. See Also
      327. TypeName Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      328. TypeOf
      329. UBound Function
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      330. UCase Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      331. Unicode
        1. See Also
      332. Until
        1. See Also
      333. User-Defined Data Type
        1. See Also
      334. User-Defined Date/Time Formats (Format Function)
        1. Example
        2. See Also
      335. User-Defined Numeric Formats (Format Function)
        1. Example
        2. See Also
      336. Val Function
        1. Parameter
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      337. VariantType Enumeration
        1. See Also
      338. VarType Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      339. VBFixedArrayAttribute Class
        1. Remarks
        2. Example
        3. See Also
      340. VBFixedArrayAttribute Constructor
        1. Parameters
        2. Remarks
        3. See Also
      341. VBFixedArrayAttribute.FirstBound Field
        1. Field Value
        2. Remarks
        3. See Also
      342. VBFixedArrayAttribute.SecondBound Field
        1. Field Value
        2. Remarks
        3. See Also
      343. VBFixedStringAttribute Class
        1. Remarks
        2. Example
        3. See Also
      344. VBFixedStringAttribute Constructor
        1. Parameters
        2. Remarks
        3. See Also
      345. VBFixedStringAttribute.SizeConst Field
        1. Field Value
        2. Remarks
        3. See Also
      346. VbStrConv Enumeration
        1. VbStrConv Enumeration Members
        2. See Also
      347. VbTypeName Function
        1. Parameter
        2. Remarks
        3. Example
        4. See Also
      348. Weekday Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. Example
        6. See Also
      349. WeekdayName Function
        1. Parameters
        2. Settings
        3. Exceptions/Errors
        4. Remarks
        5. See Also
      350. When
        1. See Also
      351. While
        1. See Also
      352. While...End While Statements
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      353. With...End With Statements
        1. Parts
        2. Remarks
        3. Example
      354. WithEvents
        1. See Also
      355. Write, WriteLine Functions
        1. Parameters
        2. Exceptions/Errors
        3. Remarks
        4. Example
        5. See Also
      356. WriteOnly
        1. See Also
      357. Xor Operator
        1. Parts
        2. Remarks
        3. Example
        4. See Also
      358. Year Function
        1. Parameter
        2. Example
        3. See Also
    5. A. Operators
      1. Operators Listed by Functionality
        1. See Also
      2. Operator Precedence in Visual Basic
        1. Arithmetic/Concatenation Operators
        2. Comparison Operators
        3. Logical/Bitwise Operators
        4. See Also
      3. Arithmetic Operators
        1. See Also
      4. Assignment Operators
      5. Comparison Operators
        1. Parts
        2. Remarks
        3. Comparing Strings
        4. Typeless programming with comparison operators
        5. Example
        6. See Also
      6. Concatenation Operators
        1. See Also
      7. Logical/Bitwise Operators
        1. See Also
      8. Miscellaneous Operators
        1. See Also
    6. B. Summary Lists
      1. #Compiler Directive Summary
        1. See Also
      2. Arrays Summary
        1. See Also
      3. Collection Object Summary
        1. See Also
      4. Control Flow Summary
        1. See Also
      5. Conversion Summary
        1. See Also
      6. Data Type Summary
        1. Memory Consumption
        2. See Also
      7. Data Types Summary
        1. See Also
      8. Dates and Times Summary
        1. See Also
      9. Declarations and Constants Summary
        1. See Also
      10. Directories and Files Summary
        1. See Also
      11. Errors Summary
        1. See Also
      12. Financial Summary
        1. See Also
      13. Information and Interaction Summary
        1. See Also
      14. Input and Output Summary
        1. See Also
      15. Math Summary
        1. See Also
      16. Registry Summary
        1. See Also
      17. String Manipulation Summary
        1. See Also
    7. C. Member Lists
      1. Visual Basic Run-Time Library Members
        1. Microsoft.VisualBasic.Collection
        2. Microsoft.VisualBasic.Conversion
        3. Microsoft.VisualBasic.DateAndTime
        4. Microsoft.VisualBasic.ErrObject
        5. Microsoft.VisualBasic.FileSystem
        6. Microsoft.VisualBasic.Financial
        7. Microsoft.VisualBasic.Globals
        8. Microsoft.VisualBasic.Information
        9. Microsoft.VisualBasic.Interaction
        10. Microsoft.VisualBasic.Strings
        11. Microsoft.VisualBasic.VbMath
        12. See Also
      2. Err Object Members
        1. Properties
        2. Methods
        3. See Also
      3. Collection Object Members
        1. Properties
        2. Methods
        3. See Also
      4. ComClassAttribute Class Members
        1. Properties
        2. Constructor
        3. See Also
      5. VBFixedArrayAttribute Class Members
        1. Fields
        2. Constructor
        3. See Also
      6. VBFixedStringAttribute Class Members
        1. Fields
        2. Constructor
        3. See Also
      7. Keywords and Members by Task
        1. See Also
    8. D. Conversion Functions
      1. See Also
    9. E. Visual Basic Compiler Options
      1. Visual Basic Compiler Options Listed Alphabetically
        1. See Also
      2. Visual Basic Compiler Options Listed by Category
        1. Compiler Output
        2. Optimization
        3. Output Files
        4. .NET Assemblies
        5. Debugging/Error Checking
        6. Help
        7. Language
        8. Preprocessor
        9. Resources
        10. Miscellaneous
        11. See Also
      3. @ (Specify Response File)
        1. Arguments
        2. Remarks
        3. Example
      4. /addmodule
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      5. /baseaddress
        1. Arguments
        2. Remarks
        3. See Also
      6. /bugreport
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      7. /debug
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      8. /define
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      9. /delaysign
        1. Arguments
        2. Remarks
        3. See Also
      10. /help, /?
        1. Remarks
        2. Example
      11. /imports
        1. Arguments
        2. Remarks
        3. To set /import programmatically
        4. Example
      12. /keycontainer
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      13. /keyfile
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      14. /libpath
        1. Arguments
        2. Remarks
        3. Example
      15. /linkresource
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      16. /main
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      17. /nologo
        1. Remarks
        2. Example
      18. /nowarn
        1. Example
      19. /optimize
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      20. /optioncompare
        1. Remarks
        2. See Also
        3. /optioncompare:binary
          1. Remarks
          2. Example
          3. See Also
        4. /optioncompare:text
          1. Remarks
          2. Example
          3. See Also
      21. /optionexplicit
        1. Arguments
        2. Example
        3. See Also
      22. /optionstrict
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      23. /out
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      24. /quiet
        1. Remarks
        2. Example
      25. /recurse
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      26. /reference
        1. Arguments
        2. Remarks
          1. To set /reference programmatically
        3. Example
        4. See Also
      27. /removeintchecks
        1. Arguments
        2. Example
      28. /resource
        1. Arguments
        2. Remarks
        3. Example
        4. See Also
      29. /rootnamespace
        1. Arguments
        2. Remarks
        3. Example
      30. /target
        1. Remarks
        2. Example
        3. /target:exe
          1. Remarks
          2. Example
          3. See Also
        4. /target:library
          1. Remarks
          2. Example
          3. See Also
        5. /target:module
          1. Remarks
          2. Example
          3. See Also
        6. /target:winexe
          1. Remarks
          2. Example
          3. See Also
      31. /utf8output
        1. Arguments
        2. Remarks
        3. Example
      32. /verbose
        1. Arguments
        2. Remarks
        3. Example
      33. /warnaserror
        1. Arguments
        2. Remarks
        3. Example
      34. /win32icon
        1. Arguments
        2. Remarks
        3. Example
      35. /win32resource
        1. Arguments
        2. Remarks
        3. Example
    10. F. Work Light
    11. About the Author
    12. SPECIAL OFFER: Upgrade this ebook with O’Reilly