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
|