
176 Chapter 5 • .NET Programming Fundamentals
propagate the change to your entire application. Here are some examples of
declaring constants:
Const X As Integer = 5
Const str As String = "Company Name"
Const X As Double = 0.12
Structures
A structure allows you to create your own custom data types.A structure contains
one or more members that can be of the same or different data types. Each
member in a structure has a name, which allows you to reference the members
individually by name even though the structure as a whole is considered a single
entity. In previous versions of Visual Basic, structures were implemented using the
Type keyword. In Visual Basic ...