Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters
Message
De
21/05/2009 17:04:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01401445
Message ID:
01401451
Vues:
57
>>Hi All:
>>
>>Consider:
>>
>>
>>*Program test.prg
>>
>>SET UDFPARMS TO VALUE
>>
>>cc = '00'
>>
>>DO test2 WITH cc
>>
>>? cc   &&Displays '11'!!!!
>>
>>return
>>
>>
>>
>>*program test2.prg
>>PARAMETERS dd
>>
>>dd = '44'
>>
>>@ 1,1 get dd  &&user enters '11'
>>
>>READ
>>
>>
>>
>>Why is the value of cc in test.prg changed to '11'? I thought that when UDFPARMS is set to VALUE, the value is not changed?
>>
>>Thanks,
>>
>>Yossi
>
>This also applies to calling functions, DO always pass parameters by reference.

Thanks.

Now, this leads me to my problem:

In the program I am working on, I have a similar setup to the test and test2 combination. I have a wierd problem that I cannot duplicate with my test and test2 and that is that in my program, nothing appears in the GET field in test2 and regardless what the user enters, the value is '44'. Any ideas?

Thanks,

Yossi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform