radio buttons problem
-
i tried the following but somehow the radio buttons do not work accordingly. UpdateData (TRUE); if(m_radio=0){ do this...} if(m_radio=1){ {do this...} if(m_radio=2){ {do this...} i have 3 radio buttons grouped together.
-
i tried the following but somehow the radio buttons do not work accordingly. UpdateData (TRUE); if(m_radio=0){ do this...} if(m_radio=1){ {do this...} if(m_radio=2){ {do this...} i have 3 radio buttons grouped together.
As Steve has already indicated, it looks as though you have mistakingly used the assignment operator in place of the equality operator. If you will get in the habit of putting constants on the left side of either operator, the compiler would have gladly complained about these statements. For example:
if (0 = m_radio) // the compiler would have flagged this as erroneous
A rich person is not the one who has the most, but the one that needs the least.