Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try... this.error()... and then catch
Message
 
 
To
23/04/2004 15:59:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00897769
Message ID:
00897803
Views:
22
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform