PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: Michael Stefanik on August 10, 2023, 03:02:44 PM

Title: Using the End statement causes problems with the IDE
Post by: Michael Stefanik on August 10, 2023, 03:02:44 PM
Testing the latest version of WinFBE and I noticed that using the End statement seems to really confuse the editor. To test this, create a new GUI project with a single form and a single button. Add event handlers for FormReady and Button1_KeyPress, and in the FormReady handler, just add an End statement:

Function frmMain_FormReady( ByRef sender As wfxForm, ByRef e As EventArgs ) As LRESULT
    Function = 0
    End
End Function

Function frmMain_Button1_KeyPress( ByRef sender As wfxButton, ByRef e As EventArgs ) As LRESULT
    Function = 0
End Function

The Explorer/Function List gets confused, and the IDE attempts to add back what (it thinks) are missing functions and the project can't compile because there's now duplicated function definitions.