I have a table in foxpro that I need to update for one column (called market).
In column "Market", there are entries that all follow the same naming convention: a 2 letter code plus numbers (i.e. AB115)
I need to make an adjustment to all these codes so that the 115 says 116 (AB115--> AB116)and that this change replicates across all the other lettered markets
I've tried using STRTRAN('115', '5', '6') but found that it ends up replacing everything with JUST 116. (i.e. AB115 ---> 116, which is wrong).
What do I need to do so that I retain the letter coding and also swap out the 115 for a 116? There are thousands of entries so doing each code invidually will be time consuming.
Any help is much appreciated!
In column "Market", there are entries that all follow the same naming convention: a 2 letter code plus numbers (i.e. AB115)
I need to make an adjustment to all these codes so that the 115 says 116 (AB115--> AB116)and that this change replicates across all the other lettered markets
I've tried using STRTRAN('115', '5', '6') but found that it ends up replacing everything with JUST 116. (i.e. AB115 ---> 116, which is wrong).
What do I need to do so that I retain the letter coding and also swap out the 115 for a 116? There are thousands of entries so doing each code invidually will be time consuming.
Any help is much appreciated!