Thursday, 22 August 2013

Best practice to swap a string for another & swap back

Best practice to swap a string for another & swap back

I have a list of strings in a database which cannot be changed.
I need to swap them with user readable strings and also be able to swap
from the user readable back to the database string.
So, "acura" = "Acura", "nissan" = "Nissan", "landrover" = "Land Rover"
I can think of some array and list based ways to do this, but I'm thinking
there might be an easier method. What is the easiest solution to do this ?
Thanks

No comments:

Post a Comment