hit counter

  1. // 내가 삽질한 코드  
  2. AnsiString sRentNet;  
  3.   
  4. if (strlen(pMi->Caption.c_str()) == 3)  
  5. {  
  6.     if (pMi->Caption.SubString(0, 1) == "9"//가운데 & 제거를 위해...  
  7.         sRentNet = pMi->Caption.SubString(0, 1) + pMi->Caption.SubString(3, 4) ;  
  8.     else  
  9.         sRentNet = pMi->Caption.SubString(2, 3); //맨 앞의 & 제거를 위해...  
  10. }  
  11. else  
  12.     sRentNet = pMi->Caption;  
  13.   
  14. //한줄로 끝나는 코드  
  15. sRentNet = (int)pMi->Tag;  
,