I need to be able to find specific characters entered into a text box. I need to find out what the 2 characters before and after [space]A[space] are.
For example if "RED ROSES AND A YELLOW ONE" was entered in the text box I need a way of finding the "ND" of "AND" and the "YE" of "YELLOW".
I'm currently attempting to put the text box value into a character array and then loop through it looking for " " and "A" and " " and then get the characters before and after but I'm having all sorts of issues. I'm not married to this way of doing it but any way that will actually work.
I've been beating my head against this issue for a week and am about to go crazy. Thanks for the help.