Search found 6 matches

by SethMould
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

Matchtext - looking for chars in each line of a list of word

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
by SethMould
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-(
by SethMould
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
by SethMould
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 8-)
by SethMould
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....