FoxPro to XSharp conversion

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
User avatar
kevclark64
Posts: 127
Joined: Thu Aug 15, 2019 7:30 pm
Location: USA

FoxPro to XSharp conversion

Post by kevclark64 »

It seems to me that the biggest issue going forward for VFP developers is going to be the conversion of foxpro projects into XSharp projects. At the SWFox conference last year Fabrice (I think) loaded up a quick sample form converter, but obviously converting a project would include converting reports especially, but also such items as VCX class libraries. So, I'm wondering whether there is any plan for this conversion process.

BTW, creating a VFP to XSharp converter seems like a project that the VFP community could help with. I'd be happy to assist.
User avatar
Chris
Posts: 4907
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

FoxPro to XSharp conversion

Post by Chris »

Hi Kevin,

Yes, this is already under development, Fabrice is working on it. Thanks for the offer, I think it's a very good idea to have community assistance (also!) on this! Please let us prepare a first experimental version and then we can take it from there.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
FoxProMatt

FoxPro to XSharp conversion

Post by FoxProMatt »

You don't have to wait for a full-blown conversion app to experiment with creating a few WinForms custom controls and drop them on a form to see if you can get WinForms to function anywhere close to what VFP does (hint: it doesn't)

When I tried to create even one simple WinForm custom control (i.e. a Container with a Label and and a Textbox inside), then drop that on a WinForm, I quickly found out that the native WinForms stack is nowhere close to VFP as far as inheritance and local customization goes. There will be LOTS of changes required in the thinking and coding of us VFP people if we're gonna work in WinForms.

Go ahead... play with it yourself. If you can't achieve something manually that works well, then having a conversion tool to blow through an entire project isn't gonna change the outcome.
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

FoxPro to XSharp conversion

Post by wriedmann »

Hi Matt,
the same is true for us VO people: both Windows Forms and WPF are far away from what we are used to have.
But creating subclasses and adding functionality helps a lot.
After all: Robert has created GUI classes compatible to the VO GUI classes but based on Windows Forms using a proxy approach, and something like this will be also needed to rebuild VFP functionality on Windows Forms or WPF.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

FoxPro to XSharp conversion

Post by FFF »

wriedmann wrote:...Robert has created GUI classes compatible to the VO GUI classes but based on Windows Forms
pmfji, but "has created" ? I thought, we are still waiting to see this coming? Or did i miss that in a what's new?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

FoxPro to XSharp conversion

Post by wriedmann »

Hi Karl,
you can do two things: download the sources from Github and compile it yourself - maybe the best in this stage. Or look in your redist folder <g>.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

FoxPro to XSharp conversion

Post by wriedmann »

Hi Karl,
I'm really sorry: in the current version it is not more in the redist folder - was there in a previous version.
So the best bed would to download the class libraries sources and build it yourself.
You will be surprized how many things already work! And it is very interesting to look at the code!
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
FoxProMatt

FoxPro to XSharp conversion

Post by FoxProMatt »

@FFF - You may know this, but he's talking about the Visual Object (VO) dialect. Regardless, hopefully that work can be used to expedite the VFP needs.

@Wolfgang - My point was saying that I'd love to see some working preliminary examples of a VFP/WinForm to get a sense of how it's going to work, so we can assess if it's a suitable solution to wait for. There doesn't need to be a full blown app converter just yet; I'd love to see the UI classes, we we can manually create a few working pieces and forms based on these new VFP-capable WinForms UI pieces.
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

FoxPro to XSharp conversion

Post by FFF »

FoxProMatt wrote:@FFF - You may know this, but he's talking about the Visual Object (VO) dialect.
Thx, Matt - as i entered the Vo-World using 1.0beta, i assumed that...
@Wolfgang,
no worries, was only curious, if i had missed something, what possibly would point to a reason for some problems i have. As for digesting the source myself, even if i were smart enough, i wouldn't know how to find time for this. It's hard enough to manage all on my plate without reaching out to far beyond my understanding ;)
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Post Reply