Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


tips:quotesinstrings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:quotesinstrings [2015/02/06 16:16] – [Apostrophes, Quotes, and Braces (Oh, my!)] jt3tips:quotesinstrings [2015/02/06 16:19] (current) – [Apostrophes, Quotes, and Braces (Oh, my!)] jt3
Line 14: Line 14:
  
    string.len('This way to John's house')    string.len('This way to John's house')
-   +
 Everything is great until you hit that apostrophe in the word "John's" Suddenly, the string function thinks that it's reached the end of the string, and all hell breaks loose.  Okay, not really, but the formula will certainly fail. Everything is great until you hit that apostrophe in the word "John's" Suddenly, the string function thinks that it's reached the end of the string, and all hell breaks loose.  Okay, not really, but the formula will certainly fail.
  
Line 21: Line 21:
    string.sub([[{c1t}]],1,15)    string.sub([[{c1t}]],1,15)
  
 +This way, your text item can have quotes OR apostrophies, and it will still be fine.  It can't have double-brackets, but if you're in the habit of doing that in your calendar items... well... stop it!
tips/quotesinstrings.1423239398.txt.gz · Last modified: 2015/02/06 16:16 by jt3