Replacing characters: I am using the image functionality to display photographs of Materials (in MM). Unfortunately one of the new stock numbers contains "/" character in the material name, which presents a problem with the naming convention I have used to access the photo in the shared drive, as I am not permitted to use a "/" in the file name.
My question: Is it possible to locate the "/" in the Material name and replace it with another character (say "-")?

This is possible if you have InputAssistant.

For a single "/" character use

Set V[part1] "&V[name]" pattern="%/"

Set V[part2] "&V[name]" pattern="&V[part1]/%"

if Q[ok]

  Set V[name] "&V[part1]-&V[part2]"

endif

If certain material numbers could turn out to contain more than one "/" character, then more coding would be required. You can then either use substring notation with a variable index or you execute the above coding several times:

label replace_characters

Set V[part1] "&V[name]" pattern="%/"

Set V[part2] "&V[name]" pattern="&V[part1]/%"

if Q[ok]

  Set V[name] "&V[part1]-&V[part2]"

  goto replace_characters

endif