Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a number to a Function
Message
 
À
15/05/2000 12:30:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00369673
Message ID:
00369681
Vues:
15
Change PARAMETER to PARAMETERS which will create Private vars or LPARAMETERS which will create them as local.

hth

>Hi All,
>
>I am trying to pass a number to a function, do a process, and return a value. But I get no value in the function.
>
>MESSAGEBOX(STR(cntr1)) && Gives me the correct value for 'cntr1'
>total_spacers = detailspacer(cntr1)
>
>FUNCTION detailspacer
> PARAMETER long_type
>
>MESSAGEBOX(STR(long_type)) && This says 0
>
>I know it's Monday and I'm not quite awake. But, why can't I get a value in the function?
>
>TIA
>Mike
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform