June 2006
Intermediate to advanced
1344 pages
42h 52m
English
Figure 16.2 uses the String indexer to access individual characters in a String, and demonstrates String property Length, which returns the length of the String. The program also uses String method CopyTo to copy a specified number of characters from a String into a Char array. This application determines the length of a String, reverses the order of the characters in the String and copies a series of characters from the String to a character array.
1 ' Fig. 16.2: StringMethods.vb 2 ' Using the indexer, property Length and method CopyTo 3 ' of class String. 4 5 Module StringMethods 6 Sub Main() 7 Dim string1 As String 8 Dim ... |
Read now
Unlock full access