Refering to a txt file, then display in text box
Posted on 2004-04-24
I'm after some help please.
I am designing a program which on clicking a Commandbutton, imports data from an XML file (not my own created XML file) into text boxes.
But have come across a problem..........
Some of the data in the XML is not a straight forward description e.g. "Mrs" instead the data is set as a numeric value.........therefore I need to code my program so when it imports the XML file and comes across a numeric value to look at a text file for the specific description. (I am thinking a text file is the best way to do it as then if the descriptions were to change in the future it'll be easier to maintain)
Example of the numeric value in the XML and their relevant description:
1 would = Mr
2 would = Mrs
3 would = Ms
4 would = Dr
Thanks in advance