Cover image for VB.NET Language Pocket Reference

Book description

Visual Basic .NET is a radically new version of Microsoft Visual Basic, the world's most widely used rapid application development (RAD) package. Whether you are just beginning application development with Visual Basic .NET or are already deep in code, you will appreciate just how easy and valuable the VB.NET Language Pocket Reference is. VB.NET Language Pocket Reference contains a concise description of all language elements by category. These include language elements implemented by the Visual Basic compiler, as well as all procedures and functions implemented in the Microsoft.VisualBasic namespace. Use it anytime you want to look up those pesky details of Visual Basic syntax or usage. With concise detail and no fluff, you'll want to take this book everywhere.

Table of Contents

  1. VB.NET Language Pocket Reference
    1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
    2. 1. Visual Basic .NET Language Pocket Reference
      1. 1.1. Introduction
      2. 1.2. Font Conventions
      3. 1.3. Visual Basic Conventions
      4. 1.4. Data Types
      5. 1.5. Variables
      6. 1.6. Operators and Precedence
      7. 1.7. Constants
        1. 1.7.1. Call Type Constants
        2. 1.7.2. Comparison Constants
        3. 1.7.3. Date and Time Constants
        4. 1.7.4. Date Format Constants
        5. 1.7.5. Error Constant
        6. 1.7.6. File Attributes
        7. 1.7.7. Logical and Tristate Constants
        8. 1.7.8. Message Box Constants
          1. 1.7.8.1. Buttons constants
          2. 1.7.8.2. Default button constants
          3. 1.7.8.3. Icon constants
          4. 1.7.8.4. Modality constants
          5. 1.7.8.5. Return value constants
          6. 1.7.8.6. Miscellaneous constants
        9. 1.7.9. Special Character Constants
        10. 1.7.10. Variable Subtype Constants
        11. 1.7.11. Window Style Constants
      8. 1.8. Enumerations
        1. 1.8.1. AppWinStyle Enumeration
        2. 1.8.2. CallType Enumeration
        3. 1.8.3. CompareMethod Enumeration
        4. 1.8.4. ControlChars Class
        5. 1.8.5. DateFormat Enumeration
        6. 1.8.6. DateInterval Enumeration
        7. 1.8.7. DueDate Enumeration
        8. 1.8.8. FileAttribute Enumeration
        9. 1.8.9. FirstDayOfWeek Enumeration
        10. 1.8.10. FirstWeekOfYear Enumeration
        11. 1.8.11. MsgBoxResult Enumeration
        12. 1.8.12. MsgBoxStyle Enumeration
        13. 1.8.13. OpenAccess Enumeration
        14. 1.8.14. OpenMode Enumeration
        15. 1.8.15. OpenShare Enumeration
        16. 1.8.16. TriState Enumeration
        17. 1.8.17. VariantType Enumeration
        18. 1.8.18. VbStrConv Enumeration
      9. 1.9. Object Programming
        1. 1.9.1. .NET Framework Class Library
        2. 1.9.2. Custom Types and Classes
        3. 1.9.3. Fields, Properties, and Methods
      10. 1.10. Program Structure
      11. 1.11. Array Handling
        1. Erase Statement
        2. IsArray Function
        3. Join Function
        4. LBound Function
        5. ReDim Statement
        6. UBound Function
        7. VBFixedArray Attribute
      12. 1.12. Collection Objects
        1. Collection.Add Method
        2. Collection.Count Property
        3. Collection.Item Method
        4. Collection.Remove Method
      13. 1.13. Conditional Compilation
        1. #Const Directive
        2. #If . . . Then . . . #Else Directive
        3. CBool Function
        4. CByte Function
        5. CChar Function
        6. CDate Function
        7. CDbl Function
        8. CDec Function
        9. CInt Function
        10. CLng Function
        11. CObj Function
        12. CSng Function
        13. CStr Function
        14. CType Function
        15. DateValue Function
        16. DirectCast Function
        17. Option Strict Statement
        18. Str Function
        19. TimeValue Function
        20. Val Function
        21. ValDec Function
      14. 1.14. Other Conversion
        1. Fix Function
        2. Hex Function
        3. Int Function
        4. Oct Function
        5. QBColor Function
        6. RGB Function
      15. 1.15. Date and Time
        1. DateAdd Function
        2. DateDiff Function
        3. DatePart Function
        4. DateSerial Function
        5. DateString Property
        6. Day Function
        7. GetTimer Function
        8. Hour Function
        9. Minute Function
        10. Month Function
        11. MonthName Function
        12. Now Property
        13. Second Function
        14. TimeOfDay Property
        15. Timer Property
        16. TimeSerial Function
        17. TimeString Property
        18. TimeValue Function
        19. Weekday Function
        20. WeekdayName Function
        21. Year Function
      16. 1.16. Declaration
        1. Class . . . End Class Statement
        2. Const Statement
        3. Declare Statement
        4. Dim Statement
        5. Enum Statement
        6. Friend Keyword
        7. Function Statement
        8. Option Explicit Statement
        9. Private Statement
        10. Property Statement
        11. Protected Keyword
        12. Public Statement
        13. Static Statement
        14. Structure...End Structure Statement
        15. Sub Statement
      17. 1.17. Error Handling
        1. Erl Property
        2. Err.Clear Method
        3. Err.Description Property
        4. Err.GetException Method
        5. Err.HelpContext Property
        6. Err.HelpFile Property
        7. Err.LastDLLError Property
        8. Err.Number Property
        9. Err.Raise Method
        10. Err.Source Property
        11. ErrorToString Function
        12. IsError Function
        13. On Error Statement
        14. Resume Statement
        15. Throw Statement
        16. Try...Catch...Finally Statement
      18. 1.18. Filesystem
        1. ChDir Procedure
        2. ChDrive Procedure
        3. CurDir Function
        4. Dir Function
        5. FileCopy Procedure
        6. FileDateTime Function
        7. GetAttr Function
        8. Kill Procedure
        9. MkDir Procedure
        10. Rename Procedure
        11. RmDir Procedure
        12. SetAttr Procedure
        13. Unlock Procedure
        14. Write Procedure
        15. WriteLine Procedure
      19. 1.19. Financial
        1. DDB Function
        2. FV Function
        3. IPmt Function
        4. IRR Function
        5. MIRR Function
        6. NPer Function
        7. NPV Function
        8. Pmt Function
        9. PPmt Function
        10. PV Function
        11. Rate Function
        12. SLN Function
        13. SYD Function
      20. 1.20. Information
        1. Erl Property
        2. IsArray Function
        3. IsDate Function
        4. IsDBNull Function
        5. IsError Function
        6. IsNothing Function
        7. IsNumeric Function
        8. IsReference Function
        9. RGB Function
        10. Rem Statement
        11. ScriptEngine Property
        12. ScriptEngineBuildVersion Property
        13. ScriptEngineMajorVersion Property
        14. ScriptEngineMinorVersion Property
        15. SystemTypeName Function
        16. TypeName Function
        17. VarType Function
        18. VbTypeName Function
      21. 1.21. Input/Output
        1. EOF Function
        2. FileAttr Function
        3. FileClose Procedure
        4. FileGet, FileGetObject Procedures
        5. FileLen Function
        6. FileOpen Procedure
        7. FilePut, FilePutObject Procedures
        8. FileWidth Procedure
        9. FreeFile Function
        10. Input Procedure
        11. InputString Function
        12. LineInput Function
        13. Loc Function
        14. Lock Procedure
        15. LOF Function
        16. Print, PrintLine Procedures
        17. Reset Procedure
        18. Seek Function
        19. Seek Procedure
        20. Spc Function
        21. Tab Function
      22. 1.22. IDE
        1. #Region...#End Region Directive
      23. 1.23. Interaction
        1. AppActivate Procedure
        2. Beep Procedure
        3. Choose Function
        4. Command Function
        5. Environ Function
        6. IIf Function
        7. InputBox Function
        8. MsgBox Function
        9. Partition Function
        10. Shell Function
        11. Switch Function
      24. 1.24. Mathematics
        1. Abs Function
        2. Acos Function
        3. Asin Function
        4. Atan Function
        5. Atan2 Function
        6. Ceiling Function
        7. Cos Function
        8. Cosh Function
        9. E Field
        10. Exp Function
        11. Fix Function
        12. Floor Function
        13. IEEERemainder Function
        14. Int Function
        15. Log Function
        16. Log10 Function
        17. Max Function
        18. Min Function
        19. Mod Operator
        20. Partition Statement
        21. Pi Field
        22. Pow Function
        23. Randomize Procedure
        24. Rnd Function
        25. Round Function
        26. Sign Function
        27. Sin Function
        28. Sinh Function
        29. Sqrt Function
        30. Tan Function
        31. Tanh Function
      25. 1.25. Program Structure and Flow
        1. Call Statement
        2. CallByName Function
        3. Do...Loop Statement
        4. End... Statement
        5. Exit . . . Statement
        6. For . . . Next Statement
        7. For Each...Next Statement
        8. GoTo Statement
        9. If...Then...Else Statement
        10. Return Statement
        11. Select Case Statement
        12. Stop Statement
        13. While...End While Statement
      26. 1.26. Programming
        1. AddHandler Statement
        2. AddressOf Operator
        3. Class...End Class Statement
        4. COMClass Attribute
        5. CreateObject Function
        6. Declare Statement
        7. Event Statement
        8. Environ Function
        9. Get Statement
        10. GetObject Function
        11. Handles Keyword
        12. Implements Keyword
        13. Implements Statement
        14. Imports Statement
        15. Inherits Statement
        16. Interface Statement
        17. Is Operator
        18. Len Function
        19. Me Operator
        20. MyBase Keyword
        21. MyClass Keyword
        22. Namespace Statement
        23. Property Statement
        24. RaiseEvent Statement
        25. RemoveHandler Statement
        26. Shadows Keyword
        27. SyncLock Statement
        28. WithEvents Keyword
      27. 1.27. Registry
        1. DeleteSetting Procedure
        2. GetAllSettings Function
        3. GetSetting Function
        4. SaveSetting Procedure
      28. 1.28. String Manipulation
        1. Asc, AscW Functions
        2. Chr, ChrW Functions
        3. Filter Function
        4. Format Function
        5. FormatCurrency, FormatNumber,FormatPercent Functions
        6. FormatDateTime Function
        7. GetChar Function
        8. InStr Function
        9. InStrRev Function
        10. Join Function
        11. LCase Function
        12. Left Function
        13. Len Function
        14. Like Operator
        15. LSet Function
        16. LTrim Function
        17. Mid Function
        18. Mid Statement
        19. Option Compare Statement
        20. Replace Function
        21. Right Function
        22. RSet Function
        23. RTrim Function
        24. Str Function
        25. Spc Function
        26. Space Function
        27. Split Function
        28. StrComp Function
        29. StrConv Function
        30. StrDup Function
        31. StrReverse Function
        32. Trim Function
        33. UCase Function
        34. Val Function
        35. VBFixedString Attribute
    3. About the Authors
    4. SPECIAL OFFER: Upgrade this ebook with O’Reilly