| View previous topic :: View next topic |
| Author |
Message |
emokid Voice
Joined: 07 Dec 2007 Posts: 22
|
Posted: Sat Mar 01, 2008 2:57 pm Post subject: How to make lowercase letters |
|
|
I am using this TriviaBot script: http://www.egghelp.org/tclhtml/3478-4-0-0-1-trivia-tcl-DarkMist.htm
Which is pretty simple, but I don't know why when it displays the questions, all the letters are in uppercase/capital letters. How do I make it back to lowercase? (The questions in the database are all lowercase letters.) |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Mar 01, 2008 3:05 pm Post subject: Re: How to make lowercase letters |
|
|
| emokid wrote: | I am using this TriviaBot script: http://www.egghelp.org/tclhtml/3478-4-0-0-1-trivia-tcl-DarkMist.htm
Which is pretty simple, but I don't know why when it displays the questions, all the letters are in uppercase/capital letters. How do I make it back to lowercase? (The questions in the database are all lowercase letters.) |
| Code: | tggamemsg "\00304===== Question [expr $tgquestionnumber+1]/$tgquestionstotal [expr $tghintnum?"(Hint $tghintnum/$tgmaxhint)":""] ====="
tggamemsg "\00312[strupr $tgcurrentquestion]"
tggamemsg "\00303Hint: [strupr $_hint]" |
Change all that above to simply what is below. [strupr $var] forces uppercase, just remove them. | Code: | tggamemsg "\00304===== Question [expr $tgquestionnumber+1]/$tgquestionstotal [expr $tghintnum?"(Hint $tghintnum/$tgmaxhint)":""] ====="
tggamemsg "\00312$tgcurrentquestion"
tggamemsg "\00303Hint: $_hint" |
|
|
| Back to top |
|
 |
emokid Voice
Joined: 07 Dec 2007 Posts: 22
|
Posted: Sat Mar 01, 2008 3:10 pm Post subject: |
|
|
| Oh thanks, I didn't know about strupr. |
|
| Back to top |
|
 |
|