• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Controlling Text > The String Object

The String Object

You can apply the methods and properties of the String object to analyze and manipulate string data types. For example, the String object can tell you the position of a certain character, or what character occupies a certain position. You can also dissect just a portion of the string and put that part, called a substring, into a new string, or concatenate substrings and strings. You can even change the lowercase and uppercase style of different parts of the string. Several methods and properties of the String object are summarized in Table 10.2.

Tip

You can use the String function to convert the value of any variable, expression, or object into a string before applying the methods of the String object. For example, if your variable radioButton is a Boolean data type, the statement

String (radioButton)

returns the string "true" or "false." Now the actual characters can be manipulated with the methods of the String object.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint