Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with collections - Take 2
Message
De
19/08/2016 12:07:30
 
 
À
19/08/2016 12:02:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01639687
Message ID:
01639689
Vues:
86
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.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform