LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
put ("He said" && quote & "hello dears" & quote && "to his friends") into tWords
put the number of words of tWords into tNum
put the number of trueWords of tWords into tTrueNum
answer word 3 of tWords && "is the 3rd word of the" && tNum && "words in" && quote & tWords & quote
answer trueWord 3 of tWords && "is the 3rd trueWord of the" && tTrueNum && "trueWords in" && quote & tWords & quote
However, this seems to have uncovered a bug on my installation (7.0.5 community edition, Windows 7) as both tNum and tTrueNum tell me the number of words or trueWords of tWords is 6, where it should be 7 trueWords.
put ("He said" && quote & "hello dears" & quote && "to his friends") into tWords
replace quote with empty in tWords
put the number of words of tWords into tNum
answer word 3 of tWords && "is the 3rd word of the" && tNum && "words in" && quote & tWords & quote
Hope this clarifies my 1st post.
Thierry
! SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!