Programming:Visual Basic Classic/Strings - eMyTextBooks

Search:  

Free online books - just read it!

See live article   •   Programming:Visual Basic Classic/Strings
 

Programming:Visual Basic Classic/Strings

Introduction

Visual Basic has a traditional set of built in string operations. Unlike many languages Visual Basic strings are always Unicode so they can hold any character. They are also always dynamically allocated and are of almost unlimited length (theoretically up to about 2^31 characters, about 2000 million).

Note that Unicode uses more than one byte to represent each character. As far as VB is concerned Unicode characters are two bytes which gives 2^16 or 65536 possible values. This is enough even for Chinese, Japanase and Korean character sets (CJK). In fact Unicode defines 17 planes each of which has room for 2^16 code points but VB (and Windows) uses only the Basic Multilingual Plane (BMP).

See What Are VB Strings? (http://www.romanpress.com/Articles/Strings_R/Strings.htm) for a concise explanation of the internal workings of Visual Basic Classic strings.

[[../Built In String Functions|Built In String Functions]]

Visual Basic provides a reasonable set of traditional functions for manipulating and searching strings. These functions are usually all that is needed for most programs that are not primarily concerned with text processing.

[[../Regular Expressions|Regular Expressions]]

Visual Basic has no built in regular expression functions, but these are available in the VBScript regular expression library. If your program does a lot of text processing regular expressions are definitely worth learning even though they may seem intimidating at the start. In practice most programmers find that the more arcane expressions are rarely used and the same idioms are recycled over and over so there is really not as much to learn as it at first appears.

[[../Loops|Previous: Loops]] Contents [[../Built In String Functions|Next: Built In String Functions]]


Also helps finding: ProgrammingVisualBasicClassicStrings, ProgrammingVisual, VisualBasic, BasicClassic, ClassicStrings, vishal, basi, clasic, visuel, bacic, classi, vidual, asic, classis, visal

   
 
  
Add to bookmarks
Top Articles
 
Ada Programming
Ada Programming/Keywords/new
Ada Programming/Keywords/procedure
Ada Programming/Keywords/range
Ada Programming/Keywords/return
Ada Programming/Keywords/subtype
Cookbook:Basic foodstuffs
Cookbook:Butter
Cookbook:Cup
Cookbook:Fruit
Cookbook:Garlic
Cookbook:Onion
Cookbook:Salt
Cookbook:Sugar
Cookbook:Tomato
Dichotomous Key
General Biology
Mishnah
SA NCS:Business Studies
SA NCS:Mathematical Literacy
Wikibooks Pokédex:Hoenn Index
Search LiveJournal blogs for Programming:Visual Basic Classic/Strings
 

Cheap Plane Tickets  •  Football Forum  •  Credit Consolidation  •  Credit Consolidation •  Property in Spain

Copyright @ 2005 eMyTextBooks.com
This article is from Wikibooks. All text is available under the terms of the GNU Free Documentation License.