Visual Basic https://store.theartofservice.com/the-visual-basic-toolkit.html.

1 Visual Basic https://store.theartofservice.com/the-visu...
Author: Anthony Juniper Holt
0 downloads 3 Views

1 Visual Basic https://store.theartofservice.com/the-visual-basic-toolkit.html

2 Dynamic-link library Microsoft Visual BasicIn Visual Basic (VB), only run-time linking is supported; but in addition to using LoadLibrary and GetProcAddress API functions, declarations of imported functions are allowed. https://store.theartofservice.com/the-visual-basic-toolkit.html

3 Dynamic-link library Microsoft Visual BasicWhen importing DLL functions through declarations, VB will generate a run-time error if the DLL file cannot be found. The developer can catch the error and handle it appropriately. https://store.theartofservice.com/the-visual-basic-toolkit.html

4 Dynamic-link library Microsoft Visual BasicWhen creating DLLs in VB, the IDE will only allow you to create ActiveX DLLs, however methods have been created to allow the user to explicitly tell the linker to include a .DEF file which defines the ordinal position and name of each exported function. This allows the user to create a standard Windows DLL using Visual Basic (Version 6 or lower) which can be referenced through a "Declare" statement. https://store.theartofservice.com/the-visual-basic-toolkit.html

5 Dynamic-link library Microsoft Visual BasicDeclare Function AddNumbers Lib "Example.dll" _ https://store.theartofservice.com/the-visual-basic-toolkit.html

6 Dynamic-link library Microsoft Visual BasicDim Result As Double https://store.theartofservice.com/the-visual-basic-toolkit.html

7 BASIC Visual Basic While this could be considered an evolution of the language, few of the distinctive features of early Dartmouth BASIC, such as line numbers and the INPUT keyword, remain (although Visual Basic still uses INPUT to read data from files, and INPUTBOX is available for direct user input; line numbers can also optionally be used in all VB versions, even VB.NET, albeit they cannot be used in certain places, for instance before SUB). https://store.theartofservice.com/the-visual-basic-toolkit.html

8 BASIC Visual Basic Eventually, during the lengthy lifetime of VB3, knowledge of Visual Basic had become a marketable job skill. https://store.theartofservice.com/the-visual-basic-toolkit.html

9 BASIC Visual Basic Microsoft also produced VBScript in 1996 and Visual Basic .NET in 2001. https://store.theartofservice.com/the-visual-basic-toolkit.html

10 Gambas - Differences from Visual BasicGambas is intended to provide a similar experience as developing in Microsoft Visual Basic, but it is not a free software clone of the popular proprietary program. The author of Gambas makes it clear that there are similarities to Visual Basic, such as syntax for BASIC programs and the integrated development environment; Gambas was written from the start to be a development environment of its own and seeks to improve on the formula. https://store.theartofservice.com/the-visual-basic-toolkit.html

11 Gambas - Differences from Visual BasicIts object model and each class being represented in a file, the archiver to package the program is inspired by the Java programming language. Gambas is intended to be an alternative for former Visual Basic developers who have decided to migrate to Linux. There are also other important distinctions between the Gambas and Visual Basic. One notable example is that in Gambas array indexes always start with 0, whereas Visual Basic indexes can start with 0 or 1. https://store.theartofservice.com/the-visual-basic-toolkit.html

12 Subroutine - Visual Basic 6 examplesVisual Basic 6 uses various terms called types to define what is being passed as a parameter https://store.theartofservice.com/the-visual-basic-toolkit.html

13 Subroutine - Visual Basic 6 examplesBy value [ByVal] – a way of passing the value of an argument to a procedure instead of passing the address. This allows the procedure to access a copy of the variable. As a result, the variable's actual value can't be changed by the procedure to which it is passed. https://store.theartofservice.com/the-visual-basic-toolkit.html

14 Subroutine - Visual Basic 6 examplesBy reference [ByRef] – a way of passing the address of an argument to a procedure instead of passing the value. This allows the procedure to access the actual variable. As a result, the variable's actual value can be changed by the procedure to which it is passed. Unless otherwise specified, arguments are passed by reference. https://store.theartofservice.com/the-visual-basic-toolkit.html

15 Subroutine - Visual Basic 6 examplesPublic (optional) – indicates that the function procedure is accessible to all other procedures in all modules. If used in a module that contains an Option Private, the procedure is not available outside the project. https://store.theartofservice.com/the-visual-basic-toolkit.html

16 Subroutine - Visual Basic 6 examplesPrivate (optional) – indicates that the function procedure is accessible only to other procedures in the module where it is declared. https://store.theartofservice.com/the-visual-basic-toolkit.html

17 Subroutine - Visual Basic 6 examplesFriend (optional) – used only in a class module. Indicates that the Function procedure is visible throughout the project, but not visible to a controller of an instance of an object. https://store.theartofservice.com/the-visual-basic-toolkit.html

18 Subroutine - Visual Basic 6 examplesPrivate Function Function1() https://store.theartofservice.com/the-visual-basic-toolkit.html

19 Subroutine - Visual Basic 6 examplesThe function does not return a value and has to be called as a stand-alone function, e.g., Function1 https://store.theartofservice.com/the-visual-basic-toolkit.html

20 Subroutine - Visual Basic 6 examplesThis function returns a result (the number 5), and the call can be part of an expression, e.g., x + Function2() https://store.theartofservice.com/the-visual-basic-toolkit.html

21 Subroutine - Visual Basic 6 examplesPrivate Function Function3(ByVal intValue as Integer) as String https://store.theartofservice.com/the-visual-basic-toolkit.html

22 Subroutine - Visual Basic 6 examplesFunction3 = strArray(intValue) https://store.theartofservice.com/the-visual-basic-toolkit.html

23 Subroutine - Visual Basic 6 examplesThis function converts a number between 0 and 6 into the initial letter of the corresponding day of the week, namely 0 to 'M', 1 to 'T', ..., 6 to 'S'. The result of calling it might be assigned to a variable, e.g., num_day = Function3(number). https://store.theartofservice.com/the-visual-basic-toolkit.html

24 Subroutine - Visual Basic 6 examplesPrivate Function Function4(ByRef intValue as Integer) https://store.theartofservice.com/the-visual-basic-toolkit.html

25 Subroutine - Visual Basic 6 examplesThis function does not return a value but modifies the variable which address is passed as the parameter; it would be called with "Function4(variable_to_increment)". https://store.theartofservice.com/the-visual-basic-toolkit.html

26 The scripting language VBScript is a subset of Visual Basic.https://store.theartofservice.com/the-visual-basic-toolkit.html

27 Visual Basic A programmer can create an application using the components provided by the Visual Basic program itself. Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations. Though the program has received criticism for its perceived faults, version 3 of Visual Basic was a runaway commercial success, and many companies offered third party controls greatly extending its functionality. https://store.theartofservice.com/the-visual-basic-toolkit.html

28 Visual Basic The final release was version 6 in Microsoft's extended support ended in March 2008 and the designated successor was Visual Basic .NET (now known simply as Visual Basic). https://store.theartofservice.com/the-visual-basic-toolkit.html

29 Visual Basic Though Visual Basic 6.0 is no longer officially available there remains a sizable number of developers who still prefer Visual Basic 6.0 over .NET. https://store.theartofservice.com/the-visual-basic-toolkit.html

30 Visual Basic A dialect of Visual Basic, Visual Basic for Applications (VBA), is used as a macro or scripting language within several Microsoft applications, including Microsoft Office. https://store.theartofservice.com/the-visual-basic-toolkit.html

31 Visual Basic - Language featuresLike the BASIC programming language, Visual Basic was designed to accommodate beginner programmers https://store.theartofservice.com/the-visual-basic-toolkit.html

32 Visual Basic - Language featuresThough VB programs can be compiled into native code executables from version 5 on, they still require the presence of around 1 MB of runtime libraries. Runtime libraries are included by default in Windows 2000 and later. Earlier versions of Windows (95/98/NT), require that the runtime libraries be distributed with the executable. https://store.theartofservice.com/the-visual-basic-toolkit.html

33 Visual Basic - Language featuresForms are created using drag-and-drop techniques https://store.theartofservice.com/the-visual-basic-toolkit.html

34 Visual Basic - Language featuresVisual Basic can create executables (EXE files), ActiveX controls, or DLL files, but is primarily used to develop Windows applications and to interface database systems. Dialog boxes with less functionality can be used to provide pop-up capabilities. Controls provide the basic functionality of the application, while programmers can insert additional logic within the appropriate event handlers. https://store.theartofservice.com/the-visual-basic-toolkit.html

35 Visual Basic - Language featuresFor example, a drop-down combination box automatically displays a list. When the user selects an element, an event handler is called that executes code that the programmer created to perform the action for that list item. https://store.theartofservice.com/the-visual-basic-toolkit.html

36 Visual Basic - Language featuresAlternatively, a Visual Basic component can have no user interface, and instead provide ActiveX objects to other programs via Component Object Model (COM). This allows for server-side processing or an add-in module. https://store.theartofservice.com/the-visual-basic-toolkit.html

37 Visual Basic - Language featuresUnlike many other programming languages, Visual Basic is generally not case sensitive—though it transforms keywords into a standard case configuration and forces the case of variable names to conform to the case of the entry in the symbol table https://store.theartofservice.com/the-visual-basic-toolkit.html

38 Visual Basic - Language featuresThe Visual Basic compiler is shared with other Visual Studio languages (C, C++), but restrictions in the IDE do not allow creation of some targets (Windows model DLLs) and threading models. https://store.theartofservice.com/the-visual-basic-toolkit.html

39 Visual Basic - CharacteristicsThe following Visual Basic traits differ from C-derived languages: https://store.theartofservice.com/the-visual-basic-toolkit.html

40 Visual Basic - CharacteristicsStatements tend to terminate with keywords, such as "End If", instead of using "{}"s to group statements. https://store.theartofservice.com/the-visual-basic-toolkit.html

41 Visual Basic - CharacteristicsMultiple variable assignment is not possible. A = B = C does not imply that the values of A, B and C are equal. The boolean result of "Is B = C?" is stored in A. The result stored in A would therefore be either false or true. https://store.theartofservice.com/the-visual-basic-toolkit.html

42 Visual Basic - CharacteristicsBoolean constant True has numeric value −1 https://store.theartofservice.com/the-visual-basic-toolkit.html

43 Visual Basic - CharacteristicsLogical and bitwise operators are unified. This is unlike some C-derived languages (such as Perl), which have separate logical and bitwise operators. This again is a traditional feature of BASIC. https://store.theartofservice.com/the-visual-basic-toolkit.html

44 Visual Basic - CharacteristicsThis uncommon trait does exist in Visual Basic .NET but not in VBScript. https://store.theartofservice.com/the-visual-basic-toolkit.html

45 Visual Basic - CharacteristicsOPTION BASE was introduced by ANSI, with the standard for ANSI Minimal BASIC in the late 1970s. https://store.theartofservice.com/the-visual-basic-toolkit.html

46 Visual Basic - CharacteristicsBanker's rounding as the default behavior when converting real numbers to integers with the Round function. ? Round(2.5, 0) gives 2, ? Round(3.5, 0) gives 4. https://store.theartofservice.com/the-visual-basic-toolkit.html

47 Visual Basic - CharacteristicsIntegers are automatically promoted to reals in expressions that involve the normal division operator (/) so that division of one integer by another produces the intuitively correct result. VB provides a specific integer divide operator (\) that does truncate. https://store.theartofservice.com/the-visual-basic-toolkit.html

48 Visual Basic - CharacteristicsThere are 12 Deftype statements in total offered by Visual Basic 6.0 https://store.theartofservice.com/the-visual-basic-toolkit.html

49 Visual Basic - History VB 1.0 was introduced in The drag and drop design for creating the user interface is derived from a prototype form generator developed by Alan Cooper and his company called Tripod. Microsoft contracted with Cooper and his associates to develop Tripod into a programmable form system for Windows 3.0, under the code name Ruby (no relation to the Ruby programming language). https://store.theartofservice.com/the-visual-basic-toolkit.html

50 Visual Basic - History Tripod did not include a programming language at all. Microsoft decided to combine Ruby with the Basic language to create Visual Basic. https://store.theartofservice.com/the-visual-basic-toolkit.html

51 Visual Basic - History The Ruby interface generator provided the "visual" part of Visual Basic and this was combined with the "EB" Embedded BASIC engine designed for Microsoft's abandoned "Omega" database system. Ruby also provided the ability to load dynamic link libraries containing additional controls (then called "gizmos"), which later became the VBX interface. https://store.theartofservice.com/the-visual-basic-toolkit.html

52 Visual Basic - TimelineProject 'basic Thunder' was initiated in 1990. https://store.theartofservice.com/the-visual-basic-toolkit.html

53 Visual Basic - TimelineVisual Basic 1.0 (May 1991) was released for Windows at the Comdex/Windows World trade show in Atlanta, Georgia. https://store.theartofservice.com/the-visual-basic-toolkit.html

54 Visual Basic - TimelineVisual Basic 1.0 for DOS was released in September The language itself was not quite compatible with Visual Basic for Windows, as it was actually the next version of Microsoft's DOS-based BASIC compilers, QuickBASIC and BASIC Professional Development System. The interface used a Text user interface, using extended ASCII characters to simulate the appearance of a GUI. https://store.theartofservice.com/the-visual-basic-toolkit.html

55 Visual Basic - TimelineVisual Basic 2.0 was released in November The programming environment was easier to use, and its speed was improved. Notably, forms became instantiable objects, thus laying the foundational concepts of class modules as were later offered in VB4. https://store.theartofservice.com/the-visual-basic-toolkit.html

56 Visual Basic - TimelineVisual Basic 3.0 was released in the summer of 1993 and came in Standard and Professional versions. VB3 included version 1.1 of the Microsoft Jet Database Engine that could read and write Jet (or Access) 1.x databases. https://store.theartofservice.com/the-visual-basic-toolkit.html

57 Visual Basic - TimelineWhile previous versions of Visual Basic had used VBX controls, Visual Basic now used OLE controls (with files names ending in .OCX) instead https://store.theartofservice.com/the-visual-basic-toolkit.html

58 Visual Basic - TimelineIt was also used as an introductory form of Visual Basic: a regular .exe project could be created and run in the IDE, but not compiled. https://store.theartofservice.com/the-visual-basic-toolkit.html

59 Visual Basic - TimelineVisual Basic 6.0 (Mid-1998) improved in a number of areas including the ability to create web-based applications. Visual Basic 6.0 has entered Microsoft's "non-supported phase" as of March Windows Vista, Windows Server 2008 and Windows 7, no longer support the Visual Basic 6.0 development environment, but still support the runtime. Microsoft announced in February 2012 that they support the runtime in Windows 8. https://store.theartofservice.com/the-visual-basic-toolkit.html

60 Visual Basic - TimelineIronically, around this time (2005), it was exposed that Microsoft's new anti-spyware offering, Microsoft AntiSpyware (part of the GIANT Company Software purchase), was coded in Visual Basic 6.0 https://store.theartofservice.com/the-visual-basic-toolkit.html

61 Visual Basic - Derivative languagesMicrosoft has developed derivatives of Visual Basic for use in scripting. Visual Basic itself is derived heavily from BASIC, and subsequently has been replaced with a .NET platform version. https://store.theartofservice.com/the-visual-basic-toolkit.html

62 Visual Basic - Derivative languagesSome of the derived languages are: https://store.theartofservice.com/the-visual-basic-toolkit.html

63 Visual Basic - Derivative languagesVisual Basic development ended with 6.0, but in 2010 Microsoft introduced VBA 7 to provide extended features add and 64-bit support. https://store.theartofservice.com/the-visual-basic-toolkit.html

64 Visual Basic - Derivative languagesVBScript is the default language for Active Server Pages. It can be used in Windows scripting and client-side web page scripting. It resembles VB in syntax, but is a separate language—executed by vbscript.dll instead of the VB runtime. ASP and VBScript should not be confused with ASP.NET, which uses the .NET Framework for compiled web pages. https://store.theartofservice.com/the-visual-basic-toolkit.html

65 Visual Basic - Derivative languagesVisual Basic .NET is Microsoft's designated successor to Visual Basic 6.0, and is part of Microsoft's .NET platform. Visual Basic.Net compiles and runs using the .NET Framework. It is not backwards compatible with Visual Basic 6.0. An automated conversion tool exists, but fully automated conversion for most projects is impossible. https://store.theartofservice.com/the-visual-basic-toolkit.html

66 Visual Basic - Derivative languagesStarOffice Basic is a Visual Basic compatible interpreter included in StarOffice suite, developed by Sun Microsystems. https://store.theartofservice.com/the-visual-basic-toolkit.html

67 Visual Basic - Derivative languagesGambas is a Visual Basic inspired free software programming language for the Linux Operating System. It is not a clone of Visual Basic, but it does have the ability to convert Visual Basic programs to Gambas. https://store.theartofservice.com/the-visual-basic-toolkit.html

68 Visual Basic - Derivative languagesWinWrap Basic is a third-party VBA variant used with various software, and available for programmers to use to build a macro facility into their programmes. https://store.theartofservice.com/the-visual-basic-toolkit.html

69 Visual Basic - Derivative languagesLotusScript is a VBA variant available in Lotus SmartSuite and Lotus Notes. https://store.theartofservice.com/the-visual-basic-toolkit.html

70 Visual Basic - Derivative languagesLater versions of Corel WordPerfect Office implement access to VBA as one of the macro/scripting languages, the other major ones being CorelScript and PerfectScript https://store.theartofservice.com/the-visual-basic-toolkit.html

71 Visual Basic - Derivative languagesEarlier versions of Microsoft Word use a variant of Visual Basic called WordBasic https://store.theartofservice.com/the-visual-basic-toolkit.html

72 Visual Basic - Performance and other issuesEarlier versions of Visual Basic (prior to version 5) compiled the code to P-Code only. The P-Code is interpreted by the language runtime. The benefits of P-Code include portability and smaller binary file sizes, but it usually slows down the execution, since having a runtime adds an additional layer of interpretation. However, small amounts of code and algorithms can be constructed to run faster than compiled native code. https://store.theartofservice.com/the-visual-basic-toolkit.html

73 Visual Basic - Performance and other issuesVisual Basic applications require Microsoft Visual Basic runtime MSVBVMxx.DLL, where xx is the relevant version number, either 50 or 60. MSVBVM60.dll comes as standard with Windows in all editions after Windows 98 while MSVBVM50.dll comes with all editions after Windows 95. A Windows 95 machine would however require inclusion with the installer of whichever dll was needed by the program. https://store.theartofservice.com/the-visual-basic-toolkit.html

74 Visual Basic - Performance and other issuesVisual Basic 5 and 6 can compile code to either native or P-Code but in either case the runtime is still required for built in functions and forms management. https://store.theartofservice.com/the-visual-basic-toolkit.html

75 Visual Basic - Performance and other issuesCriticisms levelled at Visual Basic editions prior to VB.NET include: https://store.theartofservice.com/the-visual-basic-toolkit.html

76 Visual Basic - Performance and other issuesVersioning problems associated with various runtime DLLs, known as DLL hell https://store.theartofservice.com/the-visual-basic-toolkit.html

77 Visual Basic - Performance and other issuesPoor support for object-oriented programming https://store.theartofservice.com/the-visual-basic-toolkit.html

78 Visual Basic - Performance and other issuesInability to create multi-threaded applications, without resorting to Windows API calls https://store.theartofservice.com/the-visual-basic-toolkit.html

79 Visual Basic - Performance and other issuesVariant types have a greater performance and storage overhead than strongly typed programming languages https://store.theartofservice.com/the-visual-basic-toolkit.html

80 Visual Basic - Legacy development and supportSome legacy Visual Basic components may still work on newer platforms, despite being unsupported by Microsoft and other vendors. https://store.theartofservice.com/the-visual-basic-toolkit.html

81 Visual Basic - Legacy development and supportThe Visual Basic IDE can be installed and used on Windows Vista, where it exhibits some minor incompatibilities that do not hinder normal software development and maintenance https://store.theartofservice.com/the-visual-basic-toolkit.html

82 Visual Basic - Example codePrivate Sub Form_Load() https://store.theartofservice.com/the-visual-basic-toolkit.html

83 Visual Basic - Example code' Execute a simple message box that says "Hello, World!" https://store.theartofservice.com/the-visual-basic-toolkit.html

84 Visual Basic - Example codeThis snippet makes a counter that moves up 1 every second (a label and a timer control need to be added to the form for this to work): https://store.theartofservice.com/the-visual-basic-toolkit.html

85 Visual Basic - Example codeDim Count As Integer https://store.theartofservice.com/the-visual-basic-toolkit.html

86 Visual Basic - Example codeTimer1.Interval = 1000 ' units of milliseconds https://store.theartofservice.com/the-visual-basic-toolkit.html

87 Visual Basic - Example codeLabel1.Caption = Count https://store.theartofservice.com/the-visual-basic-toolkit.html

88 Constructor (object-oriented programming) - Visual Basic .NETIn Visual Basic .NET, constructors use a method declaration with the name "New". https://store.theartofservice.com/the-visual-basic-toolkit.html

89 Constructor (object-oriented programming) - Visual Basic .NETPublic Sub New(ByVal someParam As String) https://store.theartofservice.com/the-visual-basic-toolkit.html

90 Constructor (object-oriented programming) - Visual Basic .NET' instantiating an object with the above constructor https://store.theartofservice.com/the-visual-basic-toolkit.html

91 Visual Basic .NET Microsoft currently supplies two main editions of Integrated development environment|IDEs for developing in Visual Basic: Visual Studio 2012|Microsoft Visual Studio 2012, which is commercial software and Visual Basic Express Edition 2012, which is freeware|free of charge https://store.theartofservice.com/the-visual-basic-toolkit.html

92 Visual Basic .NET - VersionsThere are 6 versions of Visual Basic .NET implemented by the Visual Basic team. https://store.theartofservice.com/the-visual-basic-toolkit.html

93 Visual Basic .NET - Visual Basic .NET (2002) (VB 7.0)The first version of Visual Basic .NET, which runs on .NET framework The most important feature is managed code, which contrasts with Visual Basic 6.0 and before. https://store.theartofservice.com/the-visual-basic-toolkit.html

94 Visual Basic .NET - Visual Basic .NET 2003 (VB 7.1)Visual Basic .NET 2003 was released with version 1.1 of the .NET Framework. New features included support for the .NET Compact Framework and a better VB upgrade wizard (software)|wizard. Improvements were also made to the performance and reliability of the .NET IDE (particularly the ) and runtime. In addition, Visual Basic .NET 2003 was available in the Visual Studio.NET Academic Edition (VS03AE). VS03AE is distributed to a certain number of scholars from each country without cost. https://store.theartofservice.com/the-visual-basic-toolkit.html

95 Visual Basic .NET - Visual Basic 2005 (VB 8.0)Visual Basic 2005 was the name used to refer to Visual Basic .NET, as Microsoft decided to drop the .NET portion of the title. https://store.theartofservice.com/the-visual-basic-toolkit.html

96 Visual Basic .NET - Visual Basic 2005 (VB 8.0)For this release, Microsoft added many features, including: https://store.theartofservice.com/the-visual-basic-toolkit.html

97 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* Edit and Continue https://store.theartofservice.com/the-visual-basic-toolkit.html

98 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* Design-time expression evaluation. https://store.theartofservice.com/the-visual-basic-toolkit.html

99 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* The My pseudo-namespace (, ), which provides: https://store.theartofservice.com/the-visual-basic-toolkit.html

100 Visual Basic .NET - Visual Basic 2005 (VB 8.0)** easy access to certain areas of the .NET Framework that otherwise require significant code to access https://store.theartofservice.com/the-visual-basic-toolkit.html

101 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* The Using keyword, simplifying the use of objects that require the Dispose Design pattern (computer science)|pattern to free resources https://store.theartofservice.com/the-visual-basic-toolkit.html

102 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* Just My Code, which when debugging hides (steps over) boilerplate code written by the Visual Studio .NET IDE and system library code https://store.theartofservice.com/the-visual-basic-toolkit.html

103 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* Data Source binding, easing database client/server development https://store.theartofservice.com/the-visual-basic-toolkit.html

104 Visual Basic .NET - Visual Basic 2005 (VB 8.0)The above functions (particularly My) are intended to reinforce Visual Basic .NET's focus as a rapid application development platform and further differentiate it from C Sharp (programming language)|C#. https://store.theartofservice.com/the-visual-basic-toolkit.html

105 Visual Basic .NET - Visual Basic 2005 (VB 8.0)Visual Basic 2005 introduced features meant to bridge the gaps between itself and other more powerful .NET languages, adding: https://store.theartofservice.com/the-visual-basic-toolkit.html

106 Visual Basic .NET - Visual Basic 2005 (VB 8.0)** Partial classes, a method of defining some parts of a class in one file and then adding more definitions later; particularly useful for integrating user code with auto-generated code https://store.theartofservice.com/the-visual-basic-toolkit.html

107 Visual Basic .NET - Visual Basic 2005 (VB 8.0)** Operator overloading and nullable Types https://store.theartofservice.com/the-visual-basic-toolkit.html

108 Visual Basic .NET - Visual Basic 2005 (VB 8.0)* Support for integer (computer science)|unsigned integer data types commonly used in other languages https://store.theartofservice.com/the-visual-basic-toolkit.html

109 Visual Basic .NET - Visual Basic 2005 (VB 8.0)One other feature of Visual Basic 2005 is the IsNot operator that makes 'If X IsNot Y' equivalent to 'If Not X Is Y', which gained notoriety when it was found to be the subject of a Microsoft patent application. https://store.theartofservice.com/the-visual-basic-toolkit.html

110 Visual Basic .NET - Visual Basic 2008 (VB 9.0)Visual Basic 9.0 was released together with the .NET Framework#.NET Framework 3.5|Microsoft .NET Framework 3.5 on 19 November 2007. https://store.theartofservice.com/the-visual-basic-toolkit.html

111 Visual Basic .NET - Visual Basic 2008 (VB 9.0)* A true conditional operator, If(condition as boolean, truepart, falsepart), to replace the IIf function. https://store.theartofservice.com/the-visual-basic-toolkit.html

112 Visual Basic .NET - Visual Basic 2008 (VB 9.0)* Support for Language Integrated Query|LINQ https://store.theartofservice.com/the-visual-basic-toolkit.html

113 Visual Basic .NET - Visual Basic 2008 (VB 9.0)* Anonymous function|Lambda expressions https://store.theartofservice.com/the-visual-basic-toolkit.html

114 Visual Basic .NET - Visual Basic 2010 (VB 10.0)The Visual Basic compiler was improved to infer line continuation in a set of common contexts, in many cases removing the need for the _ line continuation character https://store.theartofservice.com/the-visual-basic-toolkit.html

115 Visual Basic .NET - Visual Basic 2012 (VB 11.0)The latest version of Visual Basic .NET, which uses .NET framework Async Feature, Iterators, Call Hierarchy, Caller Information and Global Keyword in Namespace Statements are some of the major features introduced in this version of VB. https://store.theartofservice.com/the-visual-basic-toolkit.html

116 Visual Basic .NET - Relation to older versions of Visual Basic (VB6 and previous)Similarly, the Windows Forms GUI editor is very similar in style and function to the Visual Basic form editor. https://store.theartofservice.com/the-visual-basic-toolkit.html

117 Visual Basic .NET - Relation to older versions of Visual Basic (VB6 and previous)The version numbers used for the new Visual Basic (7, 7.1, 8, 9, ...) clearly imply that it is viewed by Microsoft as still essentially the same product as the old Visual Basic. https://store.theartofservice.com/the-visual-basic-toolkit.html

118 Visual Basic .NET - Relation to older versions of Visual Basic (VB6 and previous)The things that have changed significantly are the semantics—from those of an object-based programming language running on a deterministic, reference counting|reference-counted engine based on Component Object Model|COM to a fully object-oriented language backed by the .NET Framework, which consists of a combination of the Common Language Runtime (a virtual machine using Garbage collection (computer science)#Generational GC (aka Ephemeral GC)|generational garbage collection and a just-in-time compilation engine) and a far larger class library https://store.theartofservice.com/the-visual-basic-toolkit.html

119 Visual Basic .NET - Relation to older versions of Visual Basic (VB6 and previous)MSDN – Developer Center – Visual Basic 6.0 Resource Center – Migration – https://store.theartofservice.com/the-visual-basic-toolkit.html

120 Visual Basic .NET - Comparative examplesThe following simple examples compare VB and VB.NET syntax. Each example creates a Hello, World message box with an OK button. https://store.theartofservice.com/the-visual-basic-toolkit.html

121 Visual Basic .NET - Comparative examplesPrivate Sub Command1_Click() https://store.theartofservice.com/the-visual-basic-toolkit.html

122 Visual Basic .NET - Comparative examplesPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles https://store.theartofservice.com/the-visual-basic-toolkit.html

123 Visual Basic .NET - Comparative examples* Both Visual Basic 6 and Visual Basic .NET automatically generate the Sub and End Sub statements when the corresponding button is clicked in design view. Visual Basic .NET will also generate the necessary Class and End Class statements. The developer need only add the statement to display the Hello, World message box. https://store.theartofservice.com/the-visual-basic-toolkit.html

124 Visual Basic .NET - Comparative examples* All procedure calls must be made with parentheses in VB.NET, whereas in VB6 there were different conventions for functions (parentheses required) and subs (no parentheses allowed, unless called using the keyword Call). https://store.theartofservice.com/the-visual-basic-toolkit.html

125 Visual Basic .NET - Comparative examples* The names Command1 and Button1 are not obligatory. However, these are default names for a command button in VB6 and VB.NET respectively. https://store.theartofservice.com/the-visual-basic-toolkit.html

126 Visual Basic .NET - Comparative examples* In VB.NET, the Handles keyword is used to make the sub Button1_Click a handler for the Click event of the object Button1. In VB6, event handler subs must have a specific name consisting of the object's name (Command1), an underscore (_), and the event's name (Click, hence Command1_Click). https://store.theartofservice.com/the-visual-basic-toolkit.html

127 Visual Basic .NET - Comparative examples* There is a function called MsgBox in the Microsoft.VisualBasic namespace which can be used similarly to the corresponding function in VB6 https://store.theartofservice.com/the-visual-basic-toolkit.html

128 Visual Basic .NET - Comparative examples* In VB 2008, the inclusion of ByVal sender as Object, ByVal e as EventArgs has become optional. https://store.theartofservice.com/the-visual-basic-toolkit.html

129 Visual Basic .NET - Comparative examplesSub btnClose_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnClose.Click https://store.theartofservice.com/the-visual-basic-toolkit.html

130 Visual Basic .NET - Comparative examplesThe 'cmd' prefix is replaced by the 'btn' prefix, conforming to the new convention previously mentioned. https://store.theartofservice.com/the-visual-basic-toolkit.html

131 Visual Basic .NET - Comparative examplesVisual Basic 6 did not provide common operator shortcuts. The following are equivalent: https://store.theartofservice.com/the-visual-basic-toolkit.html

132 Visual Basic .NET - Comparative examplesSub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick https://store.theartofservice.com/the-visual-basic-toolkit.html

133 Visual Basic .NET - CriticismWhen first introduced, many long-time Visual Basic users complained about Visual Basic .NET because initial versions dropped a large number of language constructs and user interface features that were part of VB6 (which is no longer sold by Microsoft), and changed the semantics of those that remained; for example, in VB.NET parameters are (by default) passed by value, not by reference https://store.theartofservice.com/the-visual-basic-toolkit.html

134 Visual Basic .NET - CriticismMany of the changes were necessary because they needed to reflect differences between Windows Foundation Classes and equivalent classes in the .NET framework (e.g., for user-interface controls): in addition, certain changed features, such as restricting the scope of local variables to the block where they were declared, and passing parameters by value (which is the only means permitted in Java) make code less error-prone https://store.theartofservice.com/the-visual-basic-toolkit.html

135 Visual Basic .NET - CriticismHowever, many of these semantic changes were not backward-compatible with much existing code, and existing code required rewriting and testing, a significant expense when the body of code was non-trivial in size https://store.theartofservice.com/the-visual-basic-toolkit.html

136 Visual Basic .NET - CriticismMicrosoft's IDE, Visual Studio, did support some degree of automatic translation to VB.NET when VB6 code was pasted into Visual Studio https://store.theartofservice.com/the-visual-basic-toolkit.html

137 Visual Basic .NET - CriticismIt is simpler to decompiler|decompile languages that target Common Intermediate Language (CIL), including VB.NET, compared to languages that compile to machine code. Tools such as .NET Reflector can provide a close approximation to the original code due to the large amount of metadata provided in CIL. This is also true of early versions of Visual Basic (prior to VB5), which could not compile to native code. https://store.theartofservice.com/the-visual-basic-toolkit.html

138 Visual Basic .NET - CriticismVisual Basic 6.0 programs that are mainly algorithmic in nature can be migrated with few difficulties, but certain types of code are more troublesome, namely : https://store.theartofservice.com/the-visual-basic-toolkit.html

139 Visual Basic .NET - Criticism* Database support: .NET's framework for database access, ADO.NET, emphasizes disconnected operations, which use database-server resources as economically as possible by releasing them when not in use. This results in more scalable code than if the older Data Access Objects or ActiveX Data Objects were used, but the code is also more complex. https://store.theartofservice.com/the-visual-basic-toolkit.html

140 Visual Basic .NET - Criticism* Graphics: .NET has new (and more powerful) libraries for graphics. https://store.theartofservice.com/the-visual-basic-toolkit.html

141 Visual Basic .NET - Criticism* Unmanaged operations: .NET, like Java, emphasizes security, so unmanaged code is used only as a last resort. https://store.theartofservice.com/the-visual-basic-toolkit.html

142 Visual Basic .NET - CriticismOther syntactical differences relate to changes made to bring VB.Net into alignment with other .Net languages, such as zero-based arrays (all .Net arrays are only 0 to n-1 subscript, whereas classic VB arrays could be defined as either zero-based or one-based (1 to n subscript)), and structured exception handling (classic VB used a proprietary ON ERROR mechanism); such changes can be difficult or impossible to convert automatically, and converters typically flag such problem areas for manual conversion. https://store.theartofservice.com/the-visual-basic-toolkit.html

143 Visual Basic .NET - CriticismIn addition, the required Run time system|runtime libraries for VB6 programs are provided with Windows 98 SE and above, while VB.NET programs require the installation of the significantly larger .NET Framework https://store.theartofservice.com/the-visual-basic-toolkit.html

144 Visual Basic .NET - CriticismMicrosoft's response to developer dissatisfaction focused around making it easier to move new development and shift existing codebases from VB6 to VB.NET. An offering in 2005 was the , offering code samples and articles for: https://store.theartofservice.com/the-visual-basic-toolkit.html

145 Visual Basic .NET - Criticism* Using VB.NET to complete tasks that were common in VB6, like creating a print preview https://store.theartofservice.com/the-visual-basic-toolkit.html

146 Visual Basic .NET - Criticism* Integrating VB6 and VB.NET solutions (dubbed VB Fusion) https://store.theartofservice.com/the-visual-basic-toolkit.html

147 Visual Basic .NET - Cross-platform and open-source developmentThe creation of open-source tools for VB.NET development has been slow compared to C Sharp (programming language)|C#, although the Mono (software)|Mono development platform provides an implementation of VB.NET-specific libraries and a VB.NET 8.0 compatible compiler written in VB.NET, as well as standard framework libraries such as Windows Forms GUI library. https://store.theartofservice.com/the-visual-basic-toolkit.html

148 Visual Basic .NET - Cross-platform and open-source developmentSharpDevelop and MonoDevelop are Open source|open-source alternative Integrated development environment|IDEs. https://store.theartofservice.com/the-visual-basic-toolkit.html

149 Visual Basic .NET - ExamplesThe effect is to write the text Hello, world! to the command line. Each line serves a specific purpose, as follows: https://store.theartofservice.com/the-visual-basic-toolkit.html

150 Visual Basic .NET - ExamplesThis is a module definition, a division of code similar to a Class (computer science)|class, although modules can contain classes. Modules serve as containers of code that can be referenced from other parts of a program. https://store.theartofservice.com/the-visual-basic-toolkit.html

151 Visual Basic .NET - ExamplesIt is common practice for a module and the code file, which contains it, to have the same name; however, this is not required, as a single code file may contain more than one module and/or class definition. https://store.theartofservice.com/the-visual-basic-toolkit.html

152 Visual Basic .NET - ExamplesThis is the entry point where the program begins execution. Sub is an abbreviation of subroutine. https://store.theartofservice.com/the-visual-basic-toolkit.html

153 Visual Basic .NET - ExamplesThis line performs the actual task of writing the output. Console is a system object, representing a command-line interface and granting programmatic access to the Operating System's standard streams. The program calls the Console method WriteLine, which causes the string passed to it to be displayed on the console. Another common method is using MsgBox (a Message Box). https://store.theartofservice.com/the-visual-basic-toolkit.html

154 Visual Basic .NET - ExamplesThis piece of code is a solution to Floyd's Triangle: https://store.theartofservice.com/the-visual-basic-toolkit.html

155 Visual Basic .NET - ExamplesDo Until Integer.TryParse(ReadLine(Enter a value for how many rows to be displayed: ), https://store.theartofservice.com/the-visual-basic-toolkit.html

156 Visual Basic .NET - ExamplesFunction ReadLine(Optional prompt As String = Nothing) As String https://store.theartofservice.com/the-visual-basic-toolkit.html

157 Visual Basic .NET - ExamplesReturn Console.ReadLine() https://store.theartofservice.com/the-visual-basic-toolkit.html

158 Microsoft Visual Web Developer Express - Visual Basic ExpressVisual Basic Express has the following limitations: https://store.theartofservice.com/the-visual-basic-toolkit.html

159 Microsoft Visual Web Developer Express - Visual Basic Express* No IDE support for databases other than SQL Server Express and Microsoft Access https://store.theartofservice.com/the-visual-basic-toolkit.html

160 Microsoft Visual Web Developer Express - Visual Basic Express* No support for web applications with ASP.NET (although, it is supported by Visual Web Developer Express) https://store.theartofservice.com/the-visual-basic-toolkit.html

161 Microsoft Visual Web Developer Express - Visual Basic Express* No support for developing for mobile devices (no templates or emulator) https://store.theartofservice.com/the-visual-basic-toolkit.html

162 Microsoft Visual Web Developer Express - Visual Basic Express* Fewer project templates (e.g. Windows services template and Excel Workbook template are unavailable) https://store.theartofservice.com/the-visual-basic-toolkit.html

163 Microsoft Visual Web Developer Express - Visual Basic Express* Limited options for debugging and breakpoints https://store.theartofservice.com/the-visual-basic-toolkit.html

164 Microsoft Visual Web Developer Express - Visual Basic Express* No support for creating Windows Services (needs a separate project template) https://store.theartofservice.com/the-visual-basic-toolkit.html

165 Microsoft Visual Web Developer Express - Visual Basic ExpressVisual Basic 2008 Express includes the following improvements over 2005: https://store.theartofservice.com/the-visual-basic-toolkit.html

166 Microsoft Visual Web Developer Express - Visual Basic Express* Includes the visual Windows Presentation Foundation designer codenamed Cider https://store.theartofservice.com/the-visual-basic-toolkit.html

167 Microsoft Visual Web Developer Express - Visual Basic Express**Corrects most forms of invalid Syntax (programming languages)|syntax https://store.theartofservice.com/the-visual-basic-toolkit.html

168 Microsoft Visual Web Developer Express - Visual Basic Express**Provides suggestions to Class (computer science)|class names when specified classes are not found https://store.theartofservice.com/the-visual-basic-toolkit.html

169 Microsoft Visual Web Developer Express - Visual Basic ExpressVisual Basic 2005 and 2008 Express feature a Visual Basic 6.0 converter that makes it possible to upgrade Visual Basic 6.0 projects to the Visual Basic.NET. It is not included with 2010 Express. https://store.theartofservice.com/the-visual-basic-toolkit.html

170 Managed Extensions for C++ - Disadvantages to Fully Managed Code (C#, Visual Basic, etc.)* Managed C++ requires a slightly longer development time than other .NET languages that could be applied to projects that still produce the same result, since the implications of pointers in C++ are still required, even in managed C++ code. https://store.theartofservice.com/the-visual-basic-toolkit.html

171 Managed Extensions for C++ - Disadvantages to Fully Managed Code (C#, Visual Basic, etc.)* Managed C++ does not support ASP.NET web applications, which is a capability supported by all other languages targeting the .NET Framework, including other third party languages. https://store.theartofservice.com/the-visual-basic-toolkit.html

172 Managed Extensions for C++ - Disadvantages to Fully Managed Code (C#, Visual Basic, etc.)* Managed C++ includes no support for generic programming (aka templates). C++/CLI has this support. https://store.theartofservice.com/the-visual-basic-toolkit.html

173 VB.NET - Comparison with the classic Visual BasicDocumentation is available to cover changes in the syntax, debugging applications, deployment and terminology.[ Migration - Upgrading from Visual Basic 6.0] MSDN – Developer Center – Visual Basic 6.0 Resource Center – Migration – https://store.theartofservice.com/the-visual-basic-toolkit.html

174 Visual Basic ExtensionIn computer programming, a 'Visual Basic Extension' (commonly abbreviated 'VBX') or 'custom control', was the software component|component model used in Microsoft Visual Basic versions 1.0 to 3.0. It is still supported in the 16-bit version of version 4.0, but was made obsolete by OCXs. VBX has also been supported in some versions of Borland Delphi. https://store.theartofservice.com/the-visual-basic-toolkit.html

175 Visual Basic ExtensionThe VBX specification was created so that developers could extend Visual Basic. Since at the time Visual Basic was an interpreted language with limited speed, VBXs, which were most often written in C or C++, provided the ability to create very powerful and efficient user interface sub-components which could be assembled into applications using Visual Basic as the glue. https://store.theartofservice.com/the-visual-basic-toolkit.html

176 Visual Basic ExtensionVisual Basic 4.0 added support for the newer Object_Linking_and_Embedding#OLE_custom_controls|OLE Controls or 'OCX's (which became 'ActiveX' controls), implicitly deprecating VBX controls. OCXs are based on the Component Object Model. https://store.theartofservice.com/the-visual-basic-toolkit.html

177 Visual Basic ExtensionEach version of Visual Basic has come with many controls. By incorporating VBX controls into Visual Basic, Microsoft spawned the first commercially viable market for reusable software components. Third party software component|Third parties have created a large market of custom controls for resale. https://store.theartofservice.com/the-visual-basic-toolkit.html

178 Visual Basic ExtensionVBX components were called custom controls because the Microsoft development team envisioned them as visual control components like a toggle switch or button. Enterprising third party software component developers saw opportunities to use the VBX specification for non-visual components, such as components for creating ZIP (file format)|ZIP files, manipulating low-level system settings and communicating with TCP/IP. https://store.theartofservice.com/the-visual-basic-toolkit.html

179 Alan Cooper - Visual BasicMicrosoft decided not to release the product as a shell for users, but rather to transform it into a professional development tool from their QuickBASIC programming language called Visual Basic, which proved to be that Visual Basic was used widespread business application development for Windows computers. https://store.theartofservice.com/the-visual-basic-toolkit.html

180 Alan Cooper - Visual BasicThe widget would appear in the tool palette and appropriate menus, and users could incorporate it into their Visual Basic applications https://store.theartofservice.com/the-visual-basic-toolkit.html

181 Alan Cooper - Visual BasicThe first book ever written about Visual Basic, The Waite Group’s Visual Basic How-To by Mitchell Waite, is dedicated to Alan Cooper. In his dedication, the author calls Cooper the “Father of Visual Basic.” This nickname has often served as Cooper’s one-line resume.Waite, Mitchell (1992) https://store.theartofservice.com/the-visual-basic-toolkit.html

182 Alan Cooper - Visual BasicIn 1994, Bill Gates presented Cooper with the first Windows Pioneers|Windows Pioneer Award for his contributions to the software industry. During the presentation, Gates took particular note of Cooper’s innovative work creating the VBX interface.video: Alan Cooper Receiving the Windows Pioneer Award from Bill Gates, 1994, https://store.theartofservice.com/the-visual-basic-toolkit.html

183 Alan Cooper - Visual BasicIn 1998, the SVForum honored Cooper with its Visionary Award.[ SVForum Visionary Awards celebration], 1998 SVForum Visionary Awards celebration. https://store.theartofservice.com/the-visual-basic-toolkit.html

184 Visual Basic for Applications'Visual Basic for Applications' ('VBA') is an implementation of Microsoft's event-driven programming language Visual Basic 6 and its associated integrated development environment (IDE). https://store.theartofservice.com/the-visual-basic-toolkit.html

185 Visual Basic for ApplicationsVisual Basic for Applications enables building user-defined functions (UDFs), automating processes and accessing Windows API and other low-level functionality through dynamic-link library|dynamic-link libraries (DLLs) https://store.theartofservice.com/the-visual-basic-toolkit.html

186 Visual Basic for ApplicationsAs its name suggests, VBA is closely related to Visual Basic and uses the Visual Basic Runtime Library, but it can normally only run code within a host application rather than as a standalone program https://store.theartofservice.com/the-visual-basic-toolkit.html

187 Visual Basic for ApplicationsVBA is built into most Microsoft Office applications, including Office for Mac OS X (apart from version 2008) and other Microsoft applications such as Microsoft MapPoint and Microsoft Visio, as well as being at least partially implemented in other applications such as ArcGIS, AutoCAD, CATIA and WordPerfect. https://store.theartofservice.com/the-visual-basic-toolkit.html

188 Visual Basic for Applications - DesignCompatibility ends with Visual Basic version 6; VBA is incompatible with Visual Basic .NET (VB.NET) https://store.theartofservice.com/the-visual-basic-toolkit.html

189 Visual Basic for Applications - AutomationInteraction with the host application uses OLE Automation. Typically, the host application provides a data type|type library and application programming interface (API) documentation which document how VBA programs can interact with the application. This documentation can be examined from inside the VBA development environment using its Object Browser. https://store.theartofservice.com/the-visual-basic-toolkit.html

190 Visual Basic for Applications - AutomationVisual Basic for Applications programs which are written to use the OLE Automation interface of one application cannot be used to automate a different application, even if that application hosts the Visual Basic runtime, because the OLE Automation interfaces will be different. For example, a VBA program written to automate Microsoft Word cannot be used with a different word processor, even if that word processor hosts VBA. https://store.theartofservice.com/the-visual-basic-toolkit.html

191 Visual Basic for Applications - AutomationConversely, multiple applications can be automated from the one host by creating Application objects within the VBA code https://store.theartofservice.com/the-visual-basic-toolkit.html

192 Visual Basic for Applications - AutomationVBA code written in Microsoft Access can establish references to the Excel, Word and Outlook libraries; this will allow creating an application that runs a query in Access, exports the results to Excel, formats the text, then writes a mail merge document in Word that it automatically s to each member of the original query through Outlook. https://store.theartofservice.com/the-visual-basic-toolkit.html

193 Visual Basic for Applications - AutomationVBA programs can be attached to a menu button, a macro (computer science)|macro, a keyboard shortcut, or an OLE/COM event, such as the opening of a document in the application. The language provides a user interface in the form of UserForms, which can host ActiveX controls for added functionality. https://store.theartofservice.com/the-visual-basic-toolkit.html

194 Visual Basic for Applications - Security concernsLike any common programming language, VBA macros can be created with malicious intent https://store.theartofservice.com/the-visual-basic-toolkit.html

195 Visual Basic for Applications - DevelopmentAs of July 1, 2007, Microsoft no longer offers VBA distribution licenses to new customers https://store.theartofservice.com/the-visual-basic-toolkit.html

196 Visual Basic for Applications - DevelopmentSupport for VBA in the Mac OS X version of Microsoft Office was dropped (for one version) with the release of Microsoft Office 2008 for Mac.[ Office 2008 without VBA] The official reason given was that VBA relied heavily on machine code written for the PowerPC architecture, and that rewriting this code for dual PowerPC/Intel architectures would have added another two years to the development of the suite https://store.theartofservice.com/the-visual-basic-toolkit.html

197 Visual Basic for Applications - DevelopmentWith Office 2010, Microsoft has introduced VBA7 which now contains a true pointer data type: LongPtr https://store.theartofservice.com/the-visual-basic-toolkit.html

198 Comparison of C Sharp and Visual Basic .NETC Sharp (programming language)|C# and Visual Basic .NET are the two primary languages used to program on the .NET Framework. https://store.theartofservice.com/the-visual-basic-toolkit.html

199 Comparison of C Sharp and Visual Basic .NET - Language historyC# and VB.NET are syntactically very different languages with very different history https://store.theartofservice.com/the-visual-basic-toolkit.html

200 Comparison of C Sharp and Visual Basic .NET - Language historyEven though Visual Basic was a successful development platform, it was discontinued after its 6th version (VB6) when Microsoft introduced the .NET Framework and its related Visual Studio development platform in the early 2000s. https://store.theartofservice.com/the-visual-basic-toolkit.html

201 Comparison of C Sharp and Visual Basic .NET - Language comparisonThough C# and VB.NET are syntactically very different, that is where the differences mostly end. https://store.theartofservice.com/the-visual-basic-toolkit.html

202 Comparison of C Sharp and Visual Basic .NET - Language comparisonAlthough there are some differences in the programming constructs (discussed further below), their differences are primarily syntactic and, assuming one avoids the Visual Basic Compatibility libraries provided by Microsoft to aid conversion from VB6, almost every command in VB has an equivalent command in C# and vice versa https://store.theartofservice.com/the-visual-basic-toolkit.html

203 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Runtime multi-language support One of the main goals of .NET has been its multi-language support. The intent of the design was that all of the various Microsoft languages should have the same level of access to all Operating System|OS features, should be able to expose the same level of power and usability, and simplify calling from a module in one language to that written in another language. https://store.theartofservice.com/the-visual-basic-toolkit.html

204 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Runtime multi-language support In implementation, all .NET programming languages share the same runtime engine, uniform Abstract syntax tree, and Common Intermediate Language. Additionally all .NET languages have access to platform features including garbage collection, cross language inheritance, exception handling, and debugging. This allows the same output binary to be produced from any .NET programming language. https://store.theartofservice.com/the-visual-basic-toolkit.html

205 Comparison of C Sharp and Visual Basic .NET - Development environmentCurrently, the main differences in the development environments are additional features for Visual Basic .NET that originated in VB6, including: https://store.theartofservice.com/the-visual-basic-toolkit.html

206 Comparison of C Sharp and Visual Basic .NET - Development environment* Certain project files are hidden (the user can show them) https://store.theartofservice.com/the-visual-basic-toolkit.html

207 Comparison of C Sharp and Visual Basic .NET - Development environment* The auto-generated My.* namespaces contain many commonly used shortcuts brought over from VB6, such as methods for operating on the registry and application configuration file' https://store.theartofservice.com/the-visual-basic-toolkit.html

208 Comparison of C Sharp and Visual Basic .NET - Development environmentSuch is not the case with Visual Basic because the Error List panel is synchronised with the background compiler. https://store.theartofservice.com/the-visual-basic-toolkit.html

209 Comparison of C Sharp and Visual Basic .NET - Development environmentBackground Compilation is less demanding on system resources and results in faster build cycles. This is a particular advantage with large projects and can significantly reduce the time required to start debugging in the IDE. https://store.theartofservice.com/the-visual-basic-toolkit.html

210 Comparison of C Sharp and Visual Basic .NET - Language featuresThe bulk of the differences between C# and VB.NET from a technical perspective are syntactic sugar.That is, most of the features are in both languages, but some things are easier to do in one language than another. Many of the differences between the two languages are actually centered around the Integrated development environment|IDE. https://store.theartofservice.com/the-visual-basic-toolkit.html

211 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Variables can be declared using the WithEvents construct. This construct is available so that a programmer may select an object from the Class Name' drop down list and then select a method from the Declarations drop down list to have the Method signature automatically inserted https://store.theartofservice.com/the-visual-basic-toolkit.html

212 * Auto-wireup of events, VB.NET has the Handles syntax for eventsComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Auto-wireup of events, VB.NET has the Handles syntax for events https://store.theartofservice.com/the-visual-basic-toolkit.html

213 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Marshalling (computer science)|Marshalling an object for multiple actions using an unqualified dot reference. This is done using the With ... End With structure https://store.theartofservice.com/the-visual-basic-toolkit.html

214 * Inline date declarations by using #1/1/2000# syntax (M/dd/yyyy).Comparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Inline date declarations by using #1/1/2000# syntax (M/dd/yyyy). https://store.theartofservice.com/the-visual-basic-toolkit.html

215 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Module (although C#'s sealed static classes with additional semantics, but each field has to individually be declared as static) https://store.theartofservice.com/the-visual-basic-toolkit.html

216 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Members of Modules imported to the current file, can be accessed with no preceding container accessor (See [ Now] for example) https://store.theartofservice.com/the-visual-basic-toolkit.html

217 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * The [ My] namespace https://store.theartofservice.com/the-visual-basic-toolkit.html

218 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * COM components and interoperability was more powerful in VB.NET as the Object type is bound at runtime, however C# 4.0 added the dynamic type which functions as a late bound form of Object. https://store.theartofservice.com/the-visual-basic-toolkit.html

219 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * Namespaces can be imported in project level, so they don't have to be imported to each individual file, like C# https://store.theartofservice.com/the-visual-basic-toolkit.html

220 Comparison of C Sharp and Visual Basic. NET - Features of Visual BasicComparison of C Sharp and Visual Basic .NET - Features of Visual Basic .NET not found in C# * In-line exceptions filtering by a Boolean expression, using When expression blocks.MSDN: [ Try...Catch...Finally Statement (Visual Basic)] C# emulatesMSDN:[ VB Catch ... When: Why so special?] this functionality, using a catch block followed by an if block. It is not just syntax sugar. https://store.theartofservice.com/the-visual-basic-toolkit.html

221 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Features of C# not found in Visual Basic .NET * Allows blocks of unsafe code (like C++/CLI) via the unsafe keyword and support for pointers https://store.theartofservice.com/the-visual-basic-toolkit.html

222 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Features of C# not found in Visual Basic .NET * Multi-line and intra-line comments (The Visual Studio IDE supports multi-line commenting for Visual Basic .NET.) https://store.theartofservice.com/the-visual-basic-toolkit.html

223 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Features of C# not found in Visual Basic .NET * Static classes (Classes which cannot contain any non-static members, although VB's Modules are essentially sealed static classes with additional semantics.) https://store.theartofservice.com/the-visual-basic-toolkit.html

224 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Features of C# not found in Visual Basic .NET * Can use checked and unchecked contexts for fine-grained control of overflow/underflow checking https://store.theartofservice.com/the-visual-basic-toolkit.html

225 Comparison of C Sharp and Visual BasicComparison of C Sharp and Visual Basic .NET - Features of C# not found in Visual Basic .NET * Iterative for-Loops can contain multiple conditionals. for(int i = 0; i https://store.theartofservice.com/the-visual-basic-toolkit.html

226 Comparison of Visual Basic and Visual Basic .NET - On the surfaceVisual Basic .NET|Visual Basic.NET was initially released in 2002 as the next iteration in Visual Basic. To the dismay of existing Visual Basic programmers, however, the new platform bore little resemblance to its predecessor. While development houses expected to be able to recompile their Visual Basic source to a .NET target, the reality of the situation was that Visual Basic .NET|Visual Basic.NET was a vastly different paradigm. https://store.theartofservice.com/the-visual-basic-toolkit.html

227 Comparison of Visual Basic and Visual Basic .NET - On the surfaceObvious syntax differences aside, Visual Basic .NET|Visual Basic.NET provides much the same functionality as C Sharp (programming language)|C# (since they both compile down to Common Intermediate Language|MSIL, with the most obvious difference being the case insensitivity of Visual Basic .NET|Visual Basic.NET, maintaining the original case-insensitivity of Visual Basic), which is more of a problem for C Sharp (programming language)|C# programmers trying to inter-operate with Visual Basic .NET|Visual Basic.NET developers than anything else. https://store.theartofservice.com/the-visual-basic-toolkit.html

228 Comparison of Visual Basic and Visual Basic .NET - On the surfaceThe Visual Basic .NET|Visual Basic.NET developer will have to learn the use of the basic .NET types rather than what they have been used to in Visual Basic https://store.theartofservice.com/the-visual-basic-toolkit.html

229 Comparison of Visual Basic and Visual Basic .NET - On the surfaceA programmer who has only worked with Visual Basic may have a bit of a learning curve to migrate to Visual Basic .NET|Visual Basic.NET. A programmer who is versed in another language or who has had exposure to the .NET runtime should be able to cope. It would be better to think of Visual Basic .NET|Visual Basic.NET as an interface to .NET rather than a continuation of Visual Basic https://store.theartofservice.com/the-visual-basic-toolkit.html

230 There are some immediate changes that developers should take note of:Comparison of Visual Basic and Visual Basic .NET - Taking a (slightly) closer look There are some immediate changes that developers should take note of: https://store.theartofservice.com/the-visual-basic-toolkit.html

231 Comparison of Visual Basic and Visual Basic .NET - More C-like syntaxVisual Basic .Net|Visual Basic.Net allows for the += and -= operators so that longer lines like: https://store.theartofservice.com/the-visual-basic-toolkit.html

232 Comparison of Visual Basic and Visual Basic .NET - More C-like syntaxHowever, increment and decrement operators are not supported. https://store.theartofservice.com/the-visual-basic-toolkit.html

233 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Short-circuited logic In prior iterations of Visual Basic, all statements in a condition would have been evaluated even if the outcome of the condition could be determined before evaluating a condition. For example: https://store.theartofservice.com/the-visual-basic-toolkit.html

234 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Short-circuited logic ' code here is executed if foo() and bar() both return True, however, if foo() returns False, bar() is still evaluated https://store.theartofservice.com/the-visual-basic-toolkit.html

235 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Short-circuited logic This was not only inefficient, but could lead to unexpected results for any person used to another language. In Visual Basic .Net|Visual Basic.NET, the new AndAlso and OrElse operators have been added to provide short-circuit evaluation like many other languages. https://store.theartofservice.com/the-visual-basic-toolkit.html

236 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Explicit pointer-like types are no more Var* variable types are deprecated in Visual Basic .NET|Visual Basic.NET. The common runtime decides which types are reference types and which types are value types so this is no longer the domain of the programmer. https://store.theartofservice.com/the-visual-basic-toolkit.html

237 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Default values for types: no longer your choice A not-often-used feature of Visual Basic was the ability to define default values for types with Def* statements. This has been deprecated but shouldn't affect many people. https://store.theartofservice.com/the-visual-basic-toolkit.html

238 Class properties not longer require the Let and Set statementsComparison of Visual Basic and Visual Basic .NET - Properties: Let and Set Class properties not longer require the Let and Set statements https://store.theartofservice.com/the-visual-basic-toolkit.html

239 Comparison of Visual Basic and Visual Basic .NET - ProceduresA procedure call must have parentheses in Visual Basic .NET. https://store.theartofservice.com/the-visual-basic-toolkit.html

240 Comparison of Visual Basic and Visual Basic .NET - ProceduresConversion tools automatically insert a ByRef if necessary, preserving the semantics of the Visual Basic application. https://store.theartofservice.com/the-visual-basic-toolkit.html

241 Comparison of Visual Basic and Visual Basic .NET - Zero-based arraysWhile the .NET Common Language Runtime can support arrays with any base value, Visual Basic .NET|Visual Basic.NET and C Sharp (programming language)|C# provide only zero-based arrays and lists, and the .NET Common Language Infrastructure|Common Language Specification requires zero-based arrays for interoperability between .NET languages. https://store.theartofservice.com/the-visual-basic-toolkit.html

242 Comparison of Visual Basic and Visual Basic .NET - Jagged ArraysVisual Basic .NET|Visual Basic.NET introduced the concept of a Jagged Array, whereby the rows can have unequal length as opposed to the uniform length of arrays imposed on Visual Basic programmers. https://store.theartofservice.com/the-visual-basic-toolkit.html

243 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Variant data type is gone In languages compiling down to .NET platform, types are strict. Whilst the runtime allows for anonymous object which don't have a pre-defined, named type, the type of a variable may not change over the course of its life-time, hence the need to drop the Variant data-type. The loss of the type is, however, a good thing: the Variant data type imposed a performance overhead. https://store.theartofservice.com/the-visual-basic-toolkit.html

244 Comparison of Visual Basic and Visual Basic .NET - True OOPVisual Basic developers always had the nearly OOP language. You can create classes, sure, but that's about where it stops. Visual Basic .NET|Visual Basic.Net introduces, for the first time to the Visual Basic community, the concept of true object-oriented programming with the following new features: https://store.theartofservice.com/the-visual-basic-toolkit.html

245 Comparison of Visual Basic and Visual Basic .NET - True OOP# function overloading https://store.theartofservice.com/the-visual-basic-toolkit.html

246 Comparison of Visual Basic and Visual Basic .NET - True OOPAlthough no language targeting .NET allows for multiple inheritance for classes—multiple inheritance of interfaces is supported. https://store.theartofservice.com/the-visual-basic-toolkit.html

247 Comparison of Visual Basic and Visual Basic .NET - Forget COM... MostlyWhilst the IDE does a reasonable job of hiding the fact, the dependence on ActiveX objects is dropped in Visual Basic .NET|Visual Basic.NET (although there are mechanisms for interfacing with Component Object Model|COM in .NET in favour of .NET components offering similar functionality. This shift is good for the Visual Basic developer since much of the performance issues in Visual Basic arose around the cost of the COM interface. https://store.theartofservice.com/the-visual-basic-toolkit.html

248 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Elementary geometry management via the Forms designer One of the true banes of a Visual Basic developer's life has always been writing resize code. Whilst the WinForms paradigm leaves a lot to be desired in the geometry management department in the face of toolkits like Qt (framework)|Qt and GTK+, at least the developer can anchor widgets on forms instead of having to write reams of code in OnResize handlers. https://store.theartofservice.com/the-visual-basic-toolkit.html

249 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Option Explicit is not an option anymore Visual Basic with Option Explicit omitted, would just substitute the default value for the type (e.g https://store.theartofservice.com/the-visual-basic-toolkit.html

250 Comparison of Visual Basic and Visual BasicComparison of Visual Basic and Visual Basic .NET - Option Explicit is not an option anymore Visual Basic .NET|Visual Basic.NET is rebooted, essentially with Option Explicit turned on—all the time. The lazy developer will have to learn to declare her variables and the more pedantic developer will have an easier time debugging the code of his lazy co-worker. https://store.theartofservice.com/the-visual-basic-toolkit.html

251 Microsoft P-Code - Using P-Code in Visual Basic(Versions 5 and 6) Open the project; open the 'Project Properties' dialog; click on the 'Compile tab'; click the option button 'Compile to P-Code'. https://store.theartofservice.com/the-visual-basic-toolkit.html

252 BASIC programming language - Visual BasicBASIC's fortunes reversed once again with the introduction in 1991 of Visual Basic (VB), by Microsoft https://store.theartofservice.com/the-visual-basic-toolkit.html

253 BASIC programming language - Visual BasicAn important driver for the development of Visual Basic was as the new macro language for Microsoft Excel|Excel. https://store.theartofservice.com/the-visual-basic-toolkit.html

254 BASIC programming language - Visual BasicEventually, during the lengthy lifetime of VB3, knowledge of Visual Basic had become a marketable job skill. https://store.theartofservice.com/the-visual-basic-toolkit.html

255 BASIC programming language - Visual BasicMicrosoft also produced VBScript in 1996 and Visual Basic .NET in The latter has essentially the same power as C Sharp (programming language)|C# and Java (programming language)|Java but with syntax that reflects the original Basic language. https://store.theartofservice.com/the-visual-basic-toolkit.html

256 Visual Basic.NET - VersionsSucceeding Visual Basic|the classic Visual Basic version 6.0, the first version of Visual Basic .NET debuted in , seven versions of Visual Basic .NET are released. https://store.theartofservice.com/the-visual-basic-toolkit.html

257 Visual Basic.NET (VB 7.0) The first version, Visual Basic .NET, relies on .NET Framework version history#.NET Framework 1.0|.NET Framework 1.0. The most important feature is managed code, which contrasts with the classic Visual Basic. https://store.theartofservice.com/the-visual-basic-toolkit.html

258 Visual Basic.NET (VB 7.1) In addition, Visual Basic .NET 2003 was available in the Visual Studio.NET Academic Edition, distributed to a certain number of scholars from each country without cost. https://store.theartofservice.com/the-visual-basic-toolkit.html

259 Visual Basic.NET (VB 8.0) After Visual Basic .NET 2003, Microsoft dropped .NET from the name of the product, calling the next version Visual Basic 2005. https://store.theartofservice.com/the-visual-basic-toolkit.html

260 Visual Basic.NET (VB 8.0) For this release, Microsoft added many features intended to reinforce Visual Basic .NET's focus as a rapid application development platform and further differentiate it from C Sharp (programming language)|C#., including: https://store.theartofservice.com/the-visual-basic-toolkit.html

261 * A pseudo-namespace called My, which provides:Visual Basic.NET (VB 8.0) * A pseudo-namespace called My, which provides: https://store.theartofservice.com/the-visual-basic-toolkit.html

262 Visual Basic.NET (VB 8.0) * Improved VB-to-VB.NET converter[ What's New with the Visual Basic Upgrade Wizard in Visual Basic 2005] https://store.theartofservice.com/the-visual-basic-toolkit.html

263 Visual Basic.NET (VB 8.0) * A using keyword, simplifying the use of objects that require the Dispose Design pattern (computer science)|pattern to free resources https://store.theartofservice.com/the-visual-basic-toolkit.html

264 Visual Basic.NET (VB 8.0) * Just My Code feature, which hides (steps over) boilerplate code written by the Visual Studio .NET IDE and system library code during debugging https://store.theartofservice.com/the-visual-basic-toolkit.html

265 Visual Basic.NET (VB 8.0) * Generic programming|Generics[ Defining and Using Generics in Visual Basic 2005] https://store.theartofservice.com/the-visual-basic-toolkit.html

266 Visual Basic.NET (VB 8.0) * Operator overloading and nullable type|nullable types[ Operator Overloading in Visual Basic 2005] https://store.theartofservice.com/the-visual-basic-toolkit.html

267 Visual Basic.NET (VB 8.0) Visual Basic 2005 introduced the IsNot operator that makes 'If X IsNot Y' equivalent to 'If Not X Is Y'. It gained notoriety when it was found to be the subject of a Microsoft patent application. https://store.theartofservice.com/the-visual-basic-toolkit.html

268 Visual Basic.NET (VB 9.0) Visual Basic 9.0 was released along with .NET Framework 3.5 on 19 November 2007. https://store.theartofservice.com/the-visual-basic-toolkit.html

269 Visual Basic.NET (VB 10.0) The Visual Basic compiler was improved to infer line continuation in a set of common contexts, in many cases removing the need for the _ line continuation character https://store.theartofservice.com/the-visual-basic-toolkit.html

270 Visual Basic.NET (VB 11.0) Visual Basic .NET 2012 was released along .NET Framework Major features introduced in this version include: https://store.theartofservice.com/the-visual-basic-toolkit.html

271 * Asynchronous programming with async and await statementsVisual Basic.NET (VB 11.0) * Asynchronous programming with async and await statements https://store.theartofservice.com/the-visual-basic-toolkit.html

272 Visual Basic.NET (VB 12.0) Visual Basic 2013 was released .NET Framework and Visual Studio 2013 but did not include new language features. https://store.theartofservice.com/the-visual-basic-toolkit.html

273 Microsoft Visual BasicVisual Basic was derived from BASIC and enables the rapid application development|rapid application development (RAD) of graphical user interface|graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects. https://store.theartofservice.com/the-visual-basic-toolkit.html

274 Microsoft Visual BasicA programmer can create an application using the component-based software engineering|components provided by the Visual Basic program itself. Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations. Though the program has received criticism for its perceived faults, version 3 of Visual Basic was a commercial success, and many companies offered third party controls greatly extending its functionality. https://store.theartofservice.com/the-visual-basic-toolkit.html

275 Microsoft Visual BasicThe final release was version 6 in Microsoft's extended support ended in March 2008 and the designated successor was Visual Basic .NET (now known simply as Visual Basic). https://store.theartofservice.com/the-visual-basic-toolkit.html

276 Microsoft Visual Basic - Language featuresProgramming in VB is a combination of visually arranging GUI widget|components or GUI widget|controls on a Form (programming)|form, specifying attributes and actions for those components, and writing additional lines of Source code|code for more functionality. Since VB defines default attributes and actions for the components, a programmer can develop a simple program without writing much code. https://store.theartofservice.com/the-visual-basic-toolkit.html

277 Microsoft Visual Basic - Language featuresThough VB programs can be compiled into native code executables #Timeline of Visual Basic (VB1 to VB6)|from version 5 on, they still require the presence of around 1 MB of runtime libraries. Runtime libraries are included by default in Windows 2000 and later. Earlier versions of Microsoft Windows|Windows (95/98/NT), require that the runtime libraries be distributed with the executable. https://store.theartofservice.com/the-visual-basic-toolkit.html

278 Microsoft Visual Basic - Language featuresForms are created using drag-and-drop techniques https://store.theartofservice.com/the-visual-basic-toolkit.html

279 Microsoft Visual Basic - Language featuresVisual Basic can create executables (EXE files), ActiveX|ActiveX controls, or DLL files, but is primarily used to develop Windows applications and to interface database systems. Dialog boxes with less functionality can be used to provide pop-up capabilities. Controls provide the basic functionality of the application, while programmers can insert additional logic within the appropriate event handlers. https://store.theartofservice.com/the-visual-basic-toolkit.html

280 Microsoft Visual Basic - Language featuresUnlike many other programming languages, Visual Basic is generally not case sensitive—though it transforms keywords into a standard case configuration and forces the case of variable names to conform to the case of the entry in the symbol table https://store.theartofservice.com/the-visual-basic-toolkit.html

281 Microsoft Visual Basic - Characteristics* Statements tend to terminate with keywords, such as End If, instead of using s to group statements. https://store.theartofservice.com/the-visual-basic-toolkit.html

282 Microsoft Visual Basic - Characteristics* Multiple variable assignment is not possible. A = B = C does not imply that the values of A, B and C are equal. The boolean result of Is B = C? is stored in A. The result stored in A would therefore be either false or true. https://store.theartofservice.com/the-visual-basic-toolkit.html

283 Microsoft Visual Basic - Characteristics* Boolean datatype|Boolean constant True has numeric value −1.In most languages, True is mapped to a non zero numeric value, often 1 or -1 https://store.theartofservice.com/the-visual-basic-toolkit.html

284 Microsoft Visual Basic - Characteristics* Logical and bitwise operators are unified. This is unlike some C-derived languages (such as Perl), which have separate logical and bitwise operators. This again is a traditional feature of BASIC. https://store.theartofservice.com/the-visual-basic-toolkit.html

285 Microsoft Visual Basic - CharacteristicsThis uncommon trait does exist in Visual Basic .NET but not in VBScript. https://store.theartofservice.com/the-visual-basic-toolkit.html

286 Microsoft Visual Basic - Characteristics: OPTION BASE was introduced by ANSI, with the standard for ANSI Minimal BASIC in the late 1970s. https://store.theartofservice.com/the-visual-basic-toolkit.html

287 Microsoft Visual Basic - Characteristics* Rounding#Round_half_to_even|Banker's rounding as the default behavior when converting real numbers to integers with the Round function. ? Round(2.5, 0) gives 2, ? Round(3.5, 0) gives 4. https://store.theartofservice.com/the-visual-basic-toolkit.html

288 Microsoft Visual Basic - Characteristics* Integers are automatically promoted to reals in expressions that involve the normal division operator (/) so that division of one integer by another produces the intuitively correct result. VB provides a specific integer divide operator (\) that does truncate. https://store.theartofservice.com/the-visual-basic-toolkit.html

289 Microsoft Visual Basic - CharacteristicsThere are 12 Deftype statements in total offered by Visual Basic 6.0 https://store.theartofservice.com/the-visual-basic-toolkit.html

290 Microsoft Visual Basic - HistoryThe Ruby interface generator provided the visual part of Visual Basic and this was combined with the EB Embedded BASIC engine designed for Microsoft's abandoned Omega database system. Ruby also provided the ability to load dynamic-link library|dynamic link libraries containing additional controls (then called gizmos), which later became the Visual Basic Extension|VBX interface. Rian Petot Danao I 3 19 https://store.theartofservice.com/the-visual-basic-toolkit.html

291 Microsoft Visual Basic - Timeline Description* Project 'basic Thunder' was initiated in 1990. https://store.theartofservice.com/the-visual-basic-toolkit.html

292 Microsoft Visual Basic - Timeline Description* Visual Basic 1.0 (May 1991) was released for Windows at the Comdex/Windows World trade show in Atlanta, Georgia. https://store.theartofservice.com/the-visual-basic-toolkit.html

293 Microsoft Visual Basic - Timeline Description* Visual Basic 1.0 for DOS was released in September The language itself was not quite compatible with Visual Basic for Windows, as it was actually the next version of Microsoft's DOS-based BASIC compilers, QuickBASIC and BASIC Professional Development System. The interface used a Text user interface, using extended ASCII characters to simulate the appearance of a Graphical user interface|GUI. https://store.theartofservice.com/the-visual-basic-toolkit.html

294 Microsoft Visual Basic - Timeline Description* Visual Basic 2.0 was released in November The programming environment was easier to use, and its speed was improved. Notably, forms became instantiable objects, thus laying the foundational concepts of class modules as were later offered in VB4. https://store.theartofservice.com/the-visual-basic-toolkit.html

295 Microsoft Visual Basic - Timeline Description* Visual Basic 3.0 was released in the summer of 1993 and came in Standard and Professional versions. VB3 included version 1.1 of the Microsoft Jet Database Engine that could read and write Jet (or Access) 1.x databases. https://store.theartofservice.com/the-visual-basic-toolkit.html

296 Microsoft Visual Basic - Timeline DescriptionWhile previous versions of Visual Basic had used VBX controls, Visual Basic now used OLE controls (with files names ending in .OCX) instead https://store.theartofservice.com/the-visual-basic-toolkit.html

297 Microsoft Visual Basic - Timeline DescriptionIt was also used as an introductory form of Visual Basic: a regular .exe project could be created and run in the IDE, but not compiled. https://store.theartofservice.com/the-visual-basic-toolkit.html

298 Microsoft Visual Basic - Timeline Description* Visual Basic 6.0 (Mid-1998) improved in a number of areas including the ability to create web-based applications. Visual Basic 6.0 has entered Microsoft's non-supported phase as of March Windows Vista, Windows Server 2008 and Windows 7, no longer support the Visual Basic 6.0 development environment, but still support the runtime. Microsoft announced in February 2012 that they support the runtime in Windows 8. https://store.theartofservice.com/the-visual-basic-toolkit.html

299 Microsoft Visual Basic - Timeline DescriptionIronically, around this time (2005), it was exposed that Microsoft's new anti-spyware offering, Windows Defender|Microsoft AntiSpyware (part of the GIANT Company Software purchase), was coded in Visual Basic 6.0 https://store.theartofservice.com/the-visual-basic-toolkit.html

300 Microsoft Visual Basic - Derivative languagesMicrosoft has developed derivatives of Visual Basic for use in Scripting language|scripting. Visual Basic itself is derived heavily from BASIC, and subsequently has been replaced with a .NET Framework|.NET platform version. https://store.theartofservice.com/the-visual-basic-toolkit.html

301 Microsoft Visual Basic - Derivative languagesVisual Basic development ended with 6.0, but in 2010 Microsoft introduced VBA 7 to provide extended features and add 64-bit support https://store.theartofservice.com/the-visual-basic-toolkit.html

302 Microsoft Visual Basic - Derivative languages* VBScript is the default language for Active Server Pages. It can be used in Microsoft Windows|Windows scripting and client-side web page scripting. It resembles VB in Syntax (programming languages)|syntax, but is a separate language—executed by vbscript.dll instead of the VB runtime. ASP and VBScript should not be confused with ASP.NET, which uses the .NET Framework for compiled web pages. https://store.theartofservice.com/the-visual-basic-toolkit.html

303 Microsoft Visual Basic - Derivative languages* Visual Basic .NET is Microsoft's designated successor to Visual Basic 6.0, and is part of Microsoft's .NET Framework|.NET platform. Visual Basic.Net compiles and runs using the .NET Framework. It is not backward compatibility|backwards compatible with Visual Basic 6.0. An automated conversion tool exists, but fully automated conversion for most projects is impossible. https://store.theartofservice.com/the-visual-basic-toolkit.html

304 Microsoft Visual Basic - Derivative languages* OpenOffice Basic is a Visual Basic compatible interpreter that originated in StarOffice office suite. https://store.theartofservice.com/the-visual-basic-toolkit.html

305 Microsoft Visual Basic - Derivative languages* Gambas is a Visual Basic inspired free software programming language for the Linux Operating System. It is not a clone of Visual Basic, but it does have the ability to convert Visual Basic programs to Gambas. https://store.theartofservice.com/the-visual-basic-toolkit.html

306 Microsoft Visual Basic - Derivative languages* WinWrap Basic is a third-party VBA variant used with various software, and available for programmers to use to build a macro facility into their programmes. https://store.theartofservice.com/the-visual-basic-toolkit.html

307 Microsoft Visual Basic - Derivative languages* LotusScript is a VBA variant available in Lotus SmartSuite and Lotus Notes. https://store.theartofservice.com/the-visual-basic-toolkit.html

308 Microsoft Visual Basic - Derivative languages* Later versions of Corel WordPerfect Office implement access to VBA as one of the macro/scripting languages, the other major ones being CorelScript and PerfectScript https://store.theartofservice.com/the-visual-basic-toolkit.html

309 Microsoft Visual Basic - Derivative languages* Earlier versions of Microsoft Word use a variant of Visual Basic called WordBasic https://store.theartofservice.com/the-visual-basic-toolkit.html

310 Microsoft Visual Basic - Performance and other issuesEarlier versions of Visual Basic (prior to version 5) compiled the code to Microsoft P-Code|P-Code only. The P-Code is interpreted by the language runtime. The benefits of P-Code include portability and smaller binary file sizes, but it usually slows down the execution, since having a runtime adds an additional layer of interpretation. However, small amounts of code and algorithms can be constructed to run faster than compiled native code. https://store.theartofservice.com/the-visual-basic-toolkit.html

311 Microsoft Visual Basic - Performance and other issues*Versioning problems associated with various runtime DLLs, known as DLL hell https://store.theartofservice.com/the-visual-basic-toolkit.html

312 Microsoft Visual Basic - Performance and other issues*Poor support for object-oriented programming https://store.theartofservice.com/the-visual-basic-toolkit.html

313 Microsoft Visual Basic - Performance and other issues*Inability to create multi-Thread (computer science)|threaded applications, without resorting to Windows API calls https://store.theartofservice.com/the-visual-basic-toolkit.html

314 Microsoft Visual Basic - Performance and other issues*Variant types have a greater performance and storage overhead than strongly typed programming languages https://store.theartofservice.com/the-visual-basic-toolkit.html

315 Microsoft Visual Basic - Legacy development and supportSome legacy Visual Basic components may still work on newer platforms, despite being unsupported by Microsoft and other vendors. https://store.theartofservice.com/the-visual-basic-toolkit.html

316 Microsoft Visual Basic - Legacy development and supportThe Visual Basic IDE can be installed and used on Windows Vista, 7 and 8, where it exhibits some minor incompatibilities that do not hinder normal software development and maintenance https://store.theartofservice.com/the-visual-basic-toolkit.html

317 Hello world program examples - Visual Basic .NETPublic Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load() https://store.theartofservice.com/the-visual-basic-toolkit.html

318 Enumerated type - Visual Basic/VBAEnumerated datatypes in Visual Basic (up to version 6) and Visual Basic for Applications|VBA are automatically assigned the Long datatype and also become a datatype themselves: https://store.theartofservice.com/the-visual-basic-toolkit.html

319 For More Information, Visit:https://store.theartofservice.com/the-visual-basic-toolkit.html The Art of Service https://store.theartofservice.com