Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameter by reference
Message
 
 
À
06/10/1998 16:40:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00144309
Message ID:
00144387
Vues:
24
Steve,

Sorry for the error. As JimB pointed out DO WITH already sends parameters by reference. You can't alter a constant though like you originally posted you have to pass a memvar. The @ works if you call the code with a function call style:

=ShortMenu( "A", "B", @lnValue )

The = isn't needed if you are VFP5 or 6.

> Thanks for the tips you sent me. But when I modified the code by including the '@' Visual Foxpro 5 return a syntax error. If I remove the '@' then it is able to compile. Do you know why?
>
>>lnValue = 1
>>do shortmenu with "A", "B", @lnValue
>>? lnValue
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform