Add LCase()

This commit is contained in:
candry7731 2022-12-06 14:14:12 -06:00
parent 12ffbacfaf
commit 54c13158d6
2 changed files with 4 additions and 4 deletions

View File

@ -53,14 +53,14 @@ sub loadItems()
end if end if
'reset data 'reset data
if m.top.searchTerm = tr("all") if LCase(m.top.searchTerm) = LCase(tr("all"))
params.searchTerm = " " params.searchTerm = " "
else if m.top.searchTerm <> "" else if m.top.searchTerm <> ""
params.searchTerm = m.top.searchTerm params.searchTerm = m.top.searchTerm
end if end if
filter = m.top.filter filter = m.top.filter
if filter = "All" or filter = "all" if filter = Lcase("All")
' do nothing ' do nothing
else if filter = "Favorites" else if filter = "Favorites"
params.append({ Filters: "IsFavorite" }) params.append({ Filters: "IsFavorite" })

View File

@ -45,13 +45,13 @@ end sub
sub channelsearchTermSet() sub channelsearchTermSet()
m.scheduleGrid.jumpToChannel = 0 m.scheduleGrid.jumpToChannel = 0
'Reset filter if user says all 'Reset filter if user says all
if m.top.searchTerm = tr("all") or m.LoadChannelsTask.searchTerm = tr("all") if LCase(m.top.searchTerm) = LCase(tr("all")) or m.LoadChannelsTask.searchTerm = LCase(tr("all"))
m.top.searchTerm = " " m.top.searchTerm = " "
m.LoadChannelsTask.searchTerm = " " m.LoadChannelsTask.searchTerm = " "
m.spinner.visible = true m.spinner.visible = true
m.LoadChannelsTask.control = "RUN" m.LoadChannelsTask.control = "RUN"
'filter if the searterm is not invalid 'filter if the searterm is not invalid
else if m.top.searchTerm <> invalid and m.LoadChannelsTask.searchTerm <> m.top.searchTerm else if m.top.searchTerm <> invalid and LCase(m.LoadChannelsTask.searchTerm) <> LCase(m.top.searchTerm)
if m.LoadChannelsTask.state = "run" then m.LoadChannelsTask.control = "stop" if m.LoadChannelsTask.state = "run" then m.LoadChannelsTask.control = "stop"
m.LoadChannelsTask.searchTerm = m.top.searchTerm m.LoadChannelsTask.searchTerm = m.top.searchTerm