1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing CString variable runtime..

Discussion in 'MFC' started by Kivju, Sep 10, 2010.

  1. Kivju

    Kivju New Member

    Joined:
    Sep 10, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi !

    is an easier way to do next ?

    CString CSKRvalue = L"";
    CString CSKR1 = L"";
    CString CSKR2 = L"";
    CString CSKR..............

    for(int ie1 = 0; ie1 < m_list_data.GetItemCount(); ie1++)
    {
    for(int ikr = 8; ikr < 27; ikr++){

    CSKRvalue= m_list_data.GetItemText(ie1 , ikr); // KR 1 - 21 columms 8 - 26
    if(ikr = 8){ CSKR1 = CSKRvalue;}
    if(ikr = 9){ CSKR2 = CSKRvalue;}
    if(ikr = 10){ CSKR........

    }}


    I mean that, I need to determine the number of CString CSKR 21 times.

    Thanks
     

Share This Page