I will describe two procedures that I am having difficulty executing. Solutions to either one would be greatly appreciated.
1. Given two strings A and B (say, for example 513 and 3, respectively), how can the string %A%-%B% (513-3) be saved to a variable?
2. Given a string A containing exactly one '-' (say, for example 513-3), how can I produce the substrings which precede '-' (513) and follow '-' (3)?
The difficulty here is that I cannot search for the position of the character '-'.