Thanks a lot Thierry.
Merci Beaucoup!
>
>loCollFact.item(1)
>loCollFact.item(1).name
>
>loCollFact.getKey(1)
>
>
>
>>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é