18ADVANCED TEXT MAGIC

image

Although pictures of blue skies and green fields are prettier to look at than a screen full of words, many useful programs, such as Facebook, Twitter, and Words with Friends, work with text. That’s why Small Basic provides the Text object for working with text. In this chapter, you’ll learn how to use the Text object to find the length of a string, extract a small portion of a string, and perform many other advanced string-processing tasks. You’ll also write your own string-processing subroutines and apply what you learn to create some interesting applications, like a pig latin translator and a word scramble game!

The Text ...

Get Learn to Program with Small Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.