I am finally gotten everything done with my data entry form except I am having one quirk that is giving me a hard time.
I have a drop down on the form with values lets just say city1, city2, city3 and when the user selects one of these values it populates a textbox with the value. I'm trying to figure how to search and replace the city value's if the user changes his/her mind.
The user selects City1 then my textbox will say:
You have selected City1
but when the user goes oh I meant city two the textbox will then have:
You have selected City1
You have selected City2
I figured the simple solution would be to use a regular expression to parse through my multiline textbox and replace the string. If anyone has any tips or suggestions that I can research how to do this it will be greatly appreciated. Have a great day.
I have a drop down on the form with values lets just say city1, city2, city3 and when the user selects one of these values it populates a textbox with the value. I'm trying to figure how to search and replace the city value's if the user changes his/her mind.
The user selects City1 then my textbox will say:
You have selected City1
but when the user goes oh I meant city two the textbox will then have:
You have selected City1
You have selected City2
I figured the simple solution would be to use a regular expression to parse through my multiline textbox and replace the string. If anyone has any tips or suggestions that I can research how to do this it will be greatly appreciated. Have a great day.