Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB6 Code
Message
 
À
08/09/2005 15:29:00
Fred Wood
Madera Systems Consulting
Mill Valley, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01046885
Message ID:
01047902
Vues:
11
I'm assuming that this is what you received when using the VB to VFP converter? The VB to VFP converter is still in its infancy and as such it handles some of the mundane tasks of converting VB code, but is far from being comprehensive. I usually run VB code through it then go back and edit the rest by hand. When time presents itself, I will be improving on it, but between billable work, the upcoming Southwest Fox conference, and some VFP articles I am writing for the industry rags, time is a precious commodity these days. <g>

I believe that Christof's conversion code was pretty accurate (it will get you close to what you want if nothing else). Once you understand what the equivalent is in VFP for a line of VB code, it is usually just a matter of a whole lot of cut-n-paste.

If you, or anyone else for that matter, find conversion elements that are not handled properly by the converter, but have an idea of how it should convert them, feel free to email me and I will include them in the next version of the VB to VFP converter.

>Thanks for the help Craig, but I was wondering why the VB line:
>
>
>Set oSvc = New AddressSvc
>
>
>Is converted to:
>
>
>oSvc = New AddressSvc
>
>
>Which obviously does not compile in VFP. If I change it to:
>
>
>oSvc = "New AddressSvc"
>
>
>It destroys the object created with:
>
>
>oSvc = CreateObject("Avalara.AvaTax.Adapter.AddressService.AddressSvc")
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform