Ok, I just tested it, and it works without a syntax error, so it's definitely something you introduced in your copy/paste. That being said, this adds a search item to the appPosterScreen, not the appHomeScreen, which I think is what you actually want to do. If that's the case, then you'd need to add it to the initCategoryList function in appHomeScreen.brs...
Function initCategoryList() As Void
conn = InitCategoryFeedConnection()
m.Categories = conn.LoadCategoryFeed(conn)
m.Categories.Kids.Push({ Type: "search", ShortDescriptionLine1: "Search", HDPosterUrl: "pkg:/images/mysearchhd.png", SDPosterUrl: "pkg:/images/mysearchsd.png" })
m.CategoryNames = conn.GetCategoryNames(m.Categories)
End Function
And then add a new condition to the showHomeScreen wait loop:
if kid.type = "search" then
print "Search"
else if kid.type = "special_category" then
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)