Hi, I am very new to enum and callses I am tring to do a search can someone tell me what is the proper way of doing it.<br><br>I have the following function.<br>CRentalCarLot is the CLASS NAME<br><br>CRentalCar::VEHICLE_TYPE eVehicleType is my enums<br><br>int CRentalCarLot::FindFirstCar(CRentalCar::VEHICLE_TYPE eVehicleType) const<br>{<br><br>for (int nsub=0; nsub<m_nCurrentCarCount;nsub++)<br>{<br>if (eVehicleType[m_aRentalCars][nsub] == <br>//I THINK THE IF(eVehicletype comparison is wrong.<br><br>CRentalCar.GetVehicleType())<br> {<br> return 1;<br> }<br>}<br><br>Any sugestions anyone <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>