I am creating a form using PilRC. My form is called MainForm and it has two
buttons, MainOrderEntryButton and MainCommunicationsButton.

I have a MenuBar named MainFormMenuBar attached to the MainForm.  The Menu
Bar has two Pulldown menus. The first is titled Configuration with two
Menuitems, IDs=ConfigurationUser and ConfigurationSystem.  The second has
one Menuitem, ID=OptionsAboutMerchandising.

The autogenerated PilRC header file is creating these resources as follows:
#define MainForm 1001
#define MainOrderEntryButton 1002
#define MainCommunicationsButton 1003
#define ConfigurationUser 1001
#define ConfigurationSystem 1002
#define OptionsAboutMerchandising 1003

In my MainFormDoCommand routine, I check for
case OptionsAboutMerchandising, case MainOrderEntryButton and case
MainCommunicationsButton.
When I compile this, I get:
        Error   : case constant defined more than once  Main.c Line 56
case MainCommunicationsButton.

I would guess that I am getting this error because MainCommunicationsButton
and OptionsAbout Merchandising are defined with value 1003.  This is
autogenerated.... why are they getting assigned the same value?  I shouldn't
be manually editing this file, should I?  What am I doing wrong?

Thanks so much, in advance!
   Chris Hall





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to