Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return Multiple Values From a UDF
Message
De
22/01/2005 00:49:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00979276
Message ID:
00979543
Vues:
10
>I use scatter and gather alot but I want this udf to return 3 specific values, not the field list. I am trying to keep my middle tier business objects as lean and mean as possilble.

Based purely on that description a function with 3 parameters called by reference will do the trick, since it definitely is the fastest way to communicate between two layers and to get at the values. If your code passes those parameters through a lot of methods/functions without acessing their values, a parameter object will at a certain time become the faster approach.

From your description it sounds as if you have lots of traffic between the layers, which in itself can lead to bad perf. The object approach is "cleaner" but you might look at how your app is structured works before deciding.

my 0.02 EUR

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform