Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function returning more than one value
Message
De
06/03/2002 13:29:50
 
 
À
05/03/2002 22:10:01
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628208
Message ID:
00629140
Vues:
10
I have been wondering the same thing. I thought that maybe somehow you could return an array with all the values. But I am not sure how to do that.

>David
>
>I have never tried to develop a function that returns more than one value but I can't see why this would be a problem.
>
>Like for rate of return studies, you can get 2 different rates of return that are valid.
>
>So your function would have to have a way of ending after all reasonable calculations were complete and say generating a value of a and b and maybe c as acceptable answers.
>
>The function will return one value called "value" but you can always pick up the multiple values of a, b and c if they were initialized ahead of the funtion. You should probably initialize the values as space(1) i.e. a character when you would be looking for a number in the answers. If a,b and c have numerical answers then you know they were generated by the funtion.
>
>As I say, I have not actually done this, but I see no reason why it wouldn't work.
>
>Mike Smith
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform