1 / 22

Manipulating Strings

Manipulating Strings. String Functions. String Functions. VB provides a large number of functions that facilitate working with strings. These are found in Microsoft.VisualBasic.Strings For convenience they can be grouped according to the kind of task they’re designed to carry out.

rhazen
Télécharger la présentation

Manipulating Strings

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Manipulating Strings String Functions

  2. String Functions VB provides a large number of functions that facilitate working with strings. These are found in Microsoft.VisualBasic.Strings For convenience they can be grouped according to the kind of task they’re designed to carry out.

  3. Inspection Functions Inspection functions take a string (or strings) as argument(s) and return information about them in numeric form.

  4. Inspection Functions

  5. Inspection Functions

  6. Inspection Functions

  7. Inspection Functions

  8. Inspection Functions

  9. Inspection Functions

  10. Inspection Functions

  11. Inspection Functions

  12. Inspection Functions

  13. Case Conversion Functions These are fairly obvious.

  14. SubString Functions There are several functions provided to extract part of string.

  15. Formatting Functions

  16. String Creation Functions

  17. String Creation Functions Replace (“some people”, “o”, “a”)

  18. String Creation Functions Replace (“some people”, “o”, “a”) “same peaple”

  19. String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1)

  20. String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1) “same people”

  21. String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1) “same people” Replace (“some people”, “o”, “a”, 5)

  22. String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1) “same people” Replace (“some people”, “o”, “a”, 5) “ peaple” Notice that Start indicates the starting character for the Result string.

More Related