Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Chapter 4: Data, Operations, and Built-In Functions
Last change: February 13 2016 18:47:36.

Declaring String Variables

You can declare a string variable with the following syntax:

Dim VariableName As String

For example, you can code:

Dim Address As String

All strings in VB 2008 are variable-length strings. A variable-length string variable can contain any number of characters. Its length depends on what is assigned to it.

Last change: February 13 2016 18:47:37.