Can we see more code? Including the loop?

>-----Original Message-----
>From: Bobby Hicks [mailto:[EMAIL PROTECTED]
>Sent: Saturday, June 22, 2002 6:26 PM
>To: RML
>Subject: Here's a wierd one.....
>
>
>Ok, here's the first realy question in awhile.  :)
>
>I'm coding up a C++ program.
>
>I have these defined:
>#define UNKNOWN 0
>#define AREA    1
>#define ROOM    2
>#define MOBILE  3
>#define OBJECT  4
>#define RESET   5
>#define SHOP    6
>
>int      LoadType;
>
>Then I have later on when I want to display something:
>    switch ( LoadType )
>    {
>        case AREA:      fraAreaData->Visible = true;    break;
>        case ROOM:      fraRoomData->Visible = true;    break;
>        case MOBILE:    fraMobData->Visible = true;     break;
>        case OBJECT:    fraObjectData->Visible = true;  break;
>        case RESET:     fraResetData->Visible = true;   break;
>        case SHOP:      fraShopData->Visible = true;    break;
>        case UNKNOWN:   lblWarning->Visible = true;     break;
>    }
>
>
>I have put a break point at the switch, and "LoadType" does have the
>appropriate number as it should. However, it "always" goes to 
>case UNKNOWN.
>
>The program loops through this switch 6 times. Each time, 
>LoadType is 1, 2,
>3,.... respective to each loop. But the switch will NOT work like it's
>supposed to.
>
>Any ideas on this?  Btw, C++ is a completely new language for 
>me with all
>these classes and what not. Havn't figured them totally out yet.
>
>Thnx in advance,
>Rheede
>
>
>-- 
>ROM mailing list
>[email protected]
>http://www.rom.org/cgi-bin/mailman/listinfo/rom
>

Reply via email to