Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try... this.error()... and then catch
Message
 
 
À
23/04/2004 15:59:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00897769
Message ID:
00897803
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Dragan,

Maybe I'm missing something but the easiest way to check if collection item exists is to use GetGey method()
IF This.params.GetKey(cName) = 0
	oItem=Createobject("empty")
	AddProperty(oItem,"name", cName)
	AddProperty(oItem, "value", uValue)
	This.params.Add(oItem, cName)
ENDIF
>Just observed this behavior. I'm building a collection dynamically (a set of parameter name and value pairs for a view), and since the first time around the member of the collection doesn't exist, the simplest way to check whether it exists is to try...
<snip>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform