I responded to your PM, so refer to that for more detail, but basically, the issue is that since BrightScript is not case sensitive, your function name and your variable name are the same. Change one or the other, and that should fix your issue.
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)