GCSE Computer Science/String handling

From Wikibooks, open books for an open world
Jump to navigation Jump to search


String Length[edit]

This function is used to find the length of any string you pass it, counting all the characters, including the spaces.

Example:

The code

someText = "Gary had a little lamb"
Print(Length(someText))

Produces

22

Position in a string[edit]

substrings[edit]

string conversion[edit]