Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with collections - Take 2
Message
De
19/08/2016 12:02:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem with collections - Take 2
Divers
Thread ID:
01639687
Message ID:
01639687
Vues:
111
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é
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform