Post processor string handling
Posted: Sun Nov 26, 2006 11:08 pm
I'm trying to put together a lua script to remove "T4:" from the beginning of programme titles.
I think I have everything I need but I don't know what the XGUI_Lib functions are for searching a string for a substring or for trimming the string.
Basically I want to do the following (pseudo-code)...
if program.Title starts with "T4:"
then program.Title = Right(program.Title, Length(program.Title) - 3))
If that makes sense.
Cheers,
Brian
I think I have everything I need but I don't know what the XGUI_Lib functions are for searching a string for a substring or for trimming the string.
Basically I want to do the following (pseudo-code)...
if program.Title starts with "T4:"
then program.Title = Right(program.Title, Length(program.Title) - 3))
If that makes sense.
Cheers,
Brian