Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
repeat for each line i in fld "search_result_all_f"
if lineOffset(i,gFavorites) > 0 then
Find i in fld "search_result_all_f"
set the textColor of the foundLine to "red"
end if
Find empty
end repeat
repeat for each line i in fld "search_result_all_f"
if lineOffset(i,gFavorites) > 0 then
set the textColor of line i in fld "search_result_all_f" to "red"
end if
Find empty
end repeat
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
repeat with i = 1 to the number of lines in fld "search_result_all_f"
if lineOffset(i,gFavorites) > 0 then
set the textColor of line i in fld "search_result_all_f" to "red"
end if
end repeat
Which way is faster 1 or 2?
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit