Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return a value of .F. to a program
Message
 
À
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:
01176648
Vues:
7
>>>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>)

:o)))))
Agree
As I said, I never use DO syntax, so I didn't knew that. Thank you Fred.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform