GAMicrosUser
MIS
Hi, I have a SIM that is creating an 8 character code (alphanumeric). I am looking for a good way to do a find and replace of a specific character (the letter O) in the 8 character code.
Reading through the Micros SIM help files, it looks like I may be able to use the Mid function to find the location of the desired character (O) to replace and then make the change based on the position. Would this be the best way to do it or can anyone suggest a simpler method? This would probably be fine if there was only one instance of the character I wish to replace but it becomes complicated if I have to loop through the 8 character code multiple times searching for all instances of the character I want to replace.
Any example code would be apperciated.
Reading through the Micros SIM help files, it looks like I may be able to use the Mid function to find the location of the desired character (O) to replace and then make the change based on the position. Would this be the best way to do it or can anyone suggest a simpler method? This would probably be fine if there was only one instance of the character I wish to replace but it becomes complicated if I have to loop through the 8 character code multiple times searching for all instances of the character I want to replace.
Any example code would be apperciated.