Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting 2.6 to 5.0a
Message
De
10/11/1998 12:13:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00154380
Message ID:
00156221
Vues:
32
>two questions. keep reading in UT about "wrapper", what does that mean?

It's a method that hide (encapsulate) another one, giving the second method a new interface and/or new functionality.

Ex.: Method A accept one parameter (date), but doesn't validate the type of the parameter that was passed, causing it to crash.
Method B could be created as a wrapper to A like this:

LPARAMETERS tdDate

IF Type("tdDate") = "D"
Method_A(tdDate)
ELSE
MessageBox("Wrong parameter passed")
ENDIF

>second, when i convert from 2.6 to 5.0, should i choose visual or functional conversion? i converted a ton of programs awhile back and can not remember what i choose. what is the difference between visual and functional?

Visual conversion only create the forms with no code in them. The codes are written in a single separate file for reference.
Functional conversion is suppose to create the forms and put the code behind them so that the application could be run "as is". I'm sure there were good intention behind this, but it rarely work even after many tweaking at the code.

I would go for a functional conversion only if your application is very small.

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform