I seem to remember working with glynor on a complex "if(isequal(..... replace(...." expression to achieve this result some time ago!!
This brings to the fore a very valid alternative use for a library field.
Allow me to be a little presumptuous when I say that most people associate library fields directly with file tags. MC library fields can be put to use in ways such as this too. I have quite a few fields in my library that are never meant to be seen, or used for tagging.
For example, several fields I have created give me my own custom grouping options. I use these predominantly in my image views, but a simple example of what I'm talking about would be a library field called "Audio Tagging". Set it using calculated data, using the expression:
if(isempty([genre]),Untagged,Tagged)Now list all audio and set the list to group by "Audio Tagging" (z-a) and all the music with no Genre will be grouped at the top. Include a Genre pane, and it will be populated with all genres that currently exist in your library by virtue of the fact that all audio is contained within the view. Select tracks for tagging, press F4, and tag to your hearts content using the tick boxes in the genre pane.
You can create fields to help with things such as sorting, grouping, thumbnail text or
dynamic expression functions. A very handy tip indeed. There may be other ideas for levering alternative functionality from a library field... if you have one, why not post it? I remember way back, I had a couple that actually wrote a portion of a webpage for pix01... so the information on the right of
these is all produced from a library field. This was the start of a now shelved project, but it demonstrates the kind of stuff you can get up to with library fields!!
Matt, what modes are available for RemoveCharacters()?
-marko