Link to home
Start Free TrialLog in
Avatar of Member_2_99151
Member_2_99151

asked on

How do I remove an entry from a vector <CString> if I know it's index?

Hi all,

I have the following :
  vector<CString> myVar;
  myVar.push_back("A");
  myVar.push_back("B");
  myVar.push_back("C");

if I want to remove B by its ID, how do I do it?

  myVar.RemoveAt(1);
doesn't exist :-)

Thanks

James
ASKER CERTIFIED SOLUTION
Avatar of ikework
ikework
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
right zoppo .. thanks for correction .. :)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_99151
Member_2_99151

ASKER

Thanks!
Hope the points split is ok...