PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Robert Rioja on March 20, 2013, 11:01:46 AM

Title: Found a bug
Post by: Robert Rioja on March 20, 2013, 11:01:46 AM
1. Start a new project.
2. Go to the Tools tab and double click on Button to create a button control on the form.
3. Go to the form and double-click on the button control.  This will bring you to the code editor where you will see a function called FORM1_COMMAND1_BN_CLICKED.
4. Go back to the form.  In the Workspace click on the Properties tab and rename the button.  For axample, let's call it MyButton.
5. Now again double-click on the button control on the form.  This will bring you to the code editor where you will see TWO functions both called FORM1_MYBUTTON_BN_CLICKED.  So when you rename a control, FireFly renames the function but it also crates a new one.
6. If you try to compile, you will get a "THIS NAME IS ALREADY IN USE" error message.

Respectfully,
Robert
Title: Re: Found a bug
Post by: Paul Squires on March 21, 2013, 11:31:10 AM
Hi Robert,

Yes, that appears to be a bug.

To prevent the duplicate message handler for the Button you would have to "Save" the project between the time that you change the Button name to "MyButton" and the time taht you double-click the button for the second time.
Title: Re: Found a bug
Post by: Paul Squires on August 29, 2013, 01:45:16 PM
Update: This bug has been fixed and will be in the next FireFly update (version 3.65).