Sub RunUserInterface(Args as Dynamic)
...startup code, splash screen, initializing data, tables, arrays, and so on...
if (Args<>Invalid and Args.contentID<>Invalid) ' Probably overkill to do both checks, but works
Episode=m.Tables.Episodes.Records[Args.contentID]
if Episode<>Invalid ShowVideoScreen(Episode, false)
end if
ShowMovieScreen("Main", "") ' This is my main screen
End Sub