Re: Questions about class definitions in the Visual FoxPro dialect
Posted: Mon May 13, 2024 10:09 am
Hi, Robert
Thanks for the reply!
Can I know the release schedule for VFP compatible forms?
Thanks for the reply!
Can I know the release schedule for VFP compatible forms?
robert wrote: ↑Mon May 13, 2024 9:46 am Xinjie,
Ok, I see. You are referring to the specific events for VFP forms.
Our implementation of the VFP compatible forms, which is based on Windows Forms, also calls these event handlers, and we have tried to call them in the same order as VFP. I am sure that there are places where we got it wrong. We'll have to correct those.
The mechanism that we are using may look a bit strange, but the Windows Forms event handlers are expected to have a certain signature. For example the Click event of a control needs to have an object parameter and an EventArgs parameter and a return type of void.
Click Event handlers in FoxPro code have no parameters and an undefined return type. We register an event handler with the proper signature and call the VFP compatible from there.
Another difference is that in VFP the event handlers appear to be at the control level, where .Net has all these events at the form level.
Fabrice can explain this all when needed.
Robert