Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return a value of .F. to a program
Message
De
11/12/2006 14:46:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01176571
Message ID:
01176647
Vues:
8
>>I do not see a response for "Gregory".
>>
>>>
>>>Local llDoAlloc
>>>     .
>>>     .
>>>llDoAlloc	= .T.
>>>doalloc(lcCxfer , lcOS , @llDoAlloc)
>>>
>>>
>>>Check Gregory's answer.
>
>Message #1176599
>
>Gregory reminds me that passing parameters by reference is not allowed in DO ... syntax (I don't know why :-)
>And because I never use that syntax I didn't bother to remember that :-) Sorry for misleading you.

DO parameters are by reference. You need to enclose parameters in a DO with parenthesis "()" to pass by value. Function parameters are passed by value and need the "@" to pass by reference. And then there's SET UDFPARMS (anybody that changes this setting should be SHOT, unconditionally <g>)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform