Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rewriting procedural code
Message
De
17/06/2002 11:06:31
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
16/06/2002 07:02:17
Rick Graves
Advanced Approach Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00664749
Message ID:
00669244
Vues:
16
I wasn't aware of that...I use both VFP 6.0 and 7.0 at different sites. I suppose if you bound the array as a Property of a Global object it would always be in scope, so this could be useful here...thanks for the tip!

******

>Dear Irv,
>
>Thanks for the suggestions.
>
>I just discovered that is is possible to return an array from a function. (I was on a long flight and was catching up on some reading.) There is a explanation by Tamar E. Granor in the March 2002 FoxPro Advisor magazine, pp. 11-12.
>
>Returning an array from a function only works in VFP 7, and there is a rule that somewhat limits its usefulness: the array must be in scope after the function finishes running. If the function is a method and the array is a property of the same object, it works OK. So this would work for me.
>
>Thanks again.
>
>Rick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform