Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 664

Getting Started with LiveCode - Complete Beginners • Re: Identify text from a text field

$
0
0
What is the code for identifying certain words from a text field? (I also want to get the row number)
You can use -> lineoffset that will give you the line number (= row)

CODE:

...put "whatever" into tWord2Search4put lineoffset(tWord2Search4,fld "the textfield") into tLineNumberanswer tLineNumber## Will give you the line number with the FIRST occurrence of that word or 0 (Zero),## if the word is NOT in the text of the field...

Statistics: Posted by Klaus — Sun Oct 13, 2024 2:43 pm



Viewing all articles
Browse latest Browse all 664

Trending Articles