GCSE Computer Science/String handling

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


String Length[edit | edit source]

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 | edit source]

substrings[edit | edit source]

string conversion[edit | edit source]