repeat for each line temp in tAnswers
put 0 into nCount
if matchtext(temp,"*" & char 1 of tGuess & "*") then
add 1 to nCount
end if
I get an Error in the third statement
Search found 6 matches
- Thu Oct 22, 2015 4:45 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Matchtext - looking for chars in each line of a list of word
- Replies: 3
- Views: 3501
- Sun Oct 18, 2015 1:32 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: @LiveCode for Beginners #001 My first stab at LiveCode 8-)
- Replies: 1
- Views: 1843
- Tue Oct 06, 2015 3:36 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Hello! First of many stupid questions 8-)
- Replies: 6
- Views: 4485
Re: Hello! First of many stupid questions 8-)
OK worked it out. The FilePath was wrong. But I didn't get a "File Not Found" 8-(
- Tue Oct 06, 2015 3:29 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Hello! First of many stupid questions 8-)
- Replies: 6
- Views: 4485
Re: Hello! First of many stupid questions 8-)
Nope. This doesn't work:
put url ("file:" & specialFolderPath("desktop") & "/CatsDogs.txt") into tAnswer
answer tAnswer
put url ("file:" & specialFolderPath("desktop") & "/CatsDogs.txt") into tAnswer
answer tAnswer
- Tue Oct 06, 2015 3:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Hello! First of many stupid questions 8-)
- Replies: 6
- Views: 4485
Re: Hello! First of many stupid questions 8-)
Ok Thanks. Will try that. Then I can Randomize an entry based on the length of tAnswer/4 

- Tue Oct 06, 2015 3:07 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Hello! First of many stupid questions 8-)
- Replies: 6
- Views: 4485
Hello! First of many stupid questions 8-)
Hello. I'm a Visual Basic coder with 30 years IT experience, mental issues, and senility. I want to read from a file containing 4-letter words: abed abet able... into a String: open file specialFolderPath("desktop") & "/CatsDogs.txt" for read read from file specialFolderPath("desktop") & "/CatsDogs....