CAS Community   >   Resources   >  

Titler
Titler

This is a LiveCode stack demonstrating a way of manipulating text to capitalise words for titles.

Richmond Mathewson

Created by Richmond Mathewson
last edited Apr 22 2018 by Richmond Mathewson


Level: Beginner / Intermediate

Duration: That really depends on how much a teacher wants to make of things.

Teaches: Filtering words, characters, repeat loops, conditional statements.

To use this LiveCode stack you’ll need LiveCode Community for your operating system: I recommend version 8.1.9:

https://downloads.livecode.com/livecode/

This will capitalise each word in a string with the exception of words in a “reserved word” textField.

The code is contained in the script of the button “SORT THINGS OUT”

I know this will come across as extremely “stuffy” and “conservative”, but I think that children who are being taught programming should also be “dragged” through a bit of text manipulation instead of just games, games and games.

Certainly, last Summer the children I taught some BBC BASIC and LiveCode to did not object, and some said they found it interesting.


Just added a second stack to demonstrate selectedText, toUpper and toLower.

Downloaded 121 times.

Download

This resource has attached files: to access these files, please tick the box below to assent to the license terms
License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.

Feedback and Comments


Available when logged in (join via the front page, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.
Categories: