Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Class or not to class
Message
De
26/04/2018 09:49:18
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
09/04/2018 17:07:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01659269
Message ID:
01659592
Vues:
79
J'aime (1)
>Hi
>This isn't a problem. Rather, it's just a discussion of something I'm curious about VFP.
>
>As c# developers know, we can't write a method/procedure/function in c# outside of a class.
>But in VFP you can.
>
>So, I have a co-worker who saw my VFP code that wasn't rapped in a class. He asked why?
>I'm new to VFP, so I just said "because you can in VFP".
>;-)

Speed is a big factor too. As an example, if you have a formula directly in a SQL command it takes 1.3 seconds. If you take that formula and make it into a separate .prg, it takes 5 seconds and if you put that formula as a method in a class it takes almost 6 seconds.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform