Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with collections - Take 2
Message
De
19/08/2016 17:22:04
 
 
À
19/08/2016 12:07:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01639687
Message ID:
01639702
Vues:
88
Thanks a lot Thierry.
Merci Beaucoup!

>
>loCollFact.item(1) && element stored as the first item of the collection, eg the form
>loCollFact.item(1).name && name of the form
>
>loCollFact.getKey(1) && "Helen"
>
>
>
>>Here is some code I have
>>
>>
>>PARAMETERS oAdresseForme, cNomClient
>>
>>lAbsent = EMPTY( loCollFact.GetKey( cNomClient))
>>IF lAbsent
>> loCollFact.add( oAdresseForme, cNomClient)
>>ENDIF
>>
>>The parameter cNomClient contains the name of a customer
>>The parameter oAdresseForme contains an object (a form that I make visible or invisible depending on the choice of the user.)
>>
>>When I call that function, cNomClient contains "Helen" and oAdresseforme contains the object.
>>
>>the weird thing is that I insert a "set step on" after the code to see what is in the first item in the collection.
>>
>>loCollFact.item(1).name
>>
>>I assumed it would be "Helen" but the result that I get is the name of the form where I called the function from.
>>
>>This one is very weird.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform