It's best to avoid any declaration names that objects have already.
Internal vars can have a $ prefix so $X will be no problem.
I think the error is that the FMain.class file Inherits Form and all form properties.
So X is already defined in the FMain.class. same applies to all variable names Form has.
Hope that makes sense.
Form X. is redefined incorrect in Class FMain
- BruceSteers
- Posts: 1603
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: Form X. is redefined incorrect in Class FMain
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- BruceSteers
- Posts: 1603
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: Form X. is redefined incorrect in Class FMain
I understand this message now.
Sorry I did not before.
In English it would say
Form.x in incorrectly overridden.
Because using x tried to override the Form.x property (that your FMain.class inherits)
If at first you don't succeed , try doing something differently.
BruceS
BruceS
Re: Form X. is redefined incorrect in Class FMain
I'd like to do, but I can't, as there is NO Form.X in my source code! Here is, where Form- or Me. are mentioned:
Public Sub Form_Open()
Me.Show
End
...
Public Sub btnEnde_Click()
Me.Close
End
Playing around I typed "Form." and then scrolled through the properties, if there would be an "X" - and got this message:
This makes it quite clear to me, why I cannot use a variable "X" - same for "Y" which is for the top border.So I would say: "Problem solved - thanks and have a nice Sunday."
Oops - just saw that Bruce already posted the solution. Thanks a lot.