Click to See Complete Forum and Search --> : Error message, Not a legal object name:'mnuColors.'


Patrick Slein
February 27th, 2000, 11:13 PM
I am a newbie and I am working some practice programs out of the book. I am creating a simple program that has the form and two menu items at the top. After I have gone to the menu editor and created 2 menus, I click the ok button to close the window and save my work. I get the message Not a legal object name:'mnuColors.' I delete the work and retype it exactly as the book, however, the error message reappears. I reinstalled the software and tried again. Same result. What am I doing wrong that I can not save the menu item to save the program and add code? I know this is probably a simple question , but if anyone could help I would appreciate it. Thanks

Atlantisoft
February 27th, 2000, 11:14 PM
you haven't given enough information...what did you name mnucolors? the menu?

Patrick Slein
February 28th, 2000, 12:06 AM
Thanks Atlantisoft, the form is the color form and the caption is the color program.I am not sure if I understand your question? Once I pull down the menu editor and enter the caption and names, I thought I could save by clicking ok. When I did that , I received the error message.
I can not click on the ok and then save the project.

Lothar Haensler
February 28th, 2000, 01:47 AM
if you really entered a dot after "mnuColors" as the subject of your post implies, then that's your problem. The name should be "mnucolors" not "mnuColors."

Ravi Kiran
February 28th, 2000, 07:29 AM
you said "2 menu items" by any chance you are giving the same name to both of them? (it is not clear from the post). In which case you have to specify the index, seperately

RK