I have a VB6 baseball lineup application that uses the following player extensions: _P, _C, _1B, _2B, _3B, _SS, _LF, _RF, _CF
These extensions are appened to player names. For example: R Jones_SS, T Smith_RF, M Hardy_3B
The 9 player names are in a listbox and I have a textbox and a button.
Question: How do I change only the extension of a selected player in the listbox by simply putting a different extension in the textbox and clicking the button?
Example: I put _CF into the textbox, select a guy name R Thomas_3B in the listbox, click the button..... and the result changes the guy in the listbox to R Thomas_CF
The key is reading the underscore character and everything to the right of it. Any help is appreciated....thanks.