I am trying to search a string for characters and then determine the line number of the characters that are located.
on mouseUp
put URL "binfile:c:\users\Demo\Desktop\Vanguard\Vanguard.htm" into Blah
if Blah contains "**" then answer the selectedLine
end mouseUp
Many Thanks Guys!!
Googie.
Getting Line Number From "if contains"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9850
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Getting Line Number From "if contains"
The lineoffset function will do a substring search and return the line number where found.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Getting Line Number From "if contains"
Thanks for the prompt reply!!
It Worked!!!
Thanks FourthWorld!!
It Worked!!!
Thanks FourthWorld!!
-
- VIP Livecode Opensource Backer
- Posts: 9850
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Getting Line Number From "if contains"
Anytime, Googie85. We're a wild bunch here, but generally helpful.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn