Modify or Associate  the key to refer  the value exactly u want.

On Fri, May 28, 2010 at 7:52 PM, Abhijeet <[email protected]> wrote:

> You are getting this error because you are trying to add a key to a
> dictionary object which already exists.
>
> Do the following steps :
>
> 1. Add the dictionary object to Watch.
> or,
> 2. use something like myArr = objDictionary.keys and add myArr to
> watch.
> or,
> 3. you can use the following while adding any key
>
> If objDictionary,exists(newKey) Then
>  msgbox "this key already exists"
> Else
>  objDictionary.add newKey, "some value"
>  msgbox "new key added successfully"
> End If
>
> - Abhijeet
>
> On May 28, 5:14 am, Akshay verma <[email protected]> wrote:
> > This error occurs while using dictionary object.
> >
> > And code is trying to assign vale for existing key
> >
> > As Example
> >
> > DisctioonartyObj.Add (Key1,"STR1")
> > DisctioonartyObj.Add (Key1,"STR4")
> >
> > Hope you this helps you.
> >
> > On Thu, May 27, 2010 at 8:20 AM, Crazyprincess <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> > > Gm!
> >
> > > While running my script i am getting following error:  This key is
> > > already associated with an element of this collection but i was not
> > > able to produce the same error before? please do suggest how to
> > > resolve this issue?
> >
> > > Thanks,
> > > Bhavi.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > "QTP - HP Quick Test Professional - Automated Software Testing"
> > > group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<mercuryqtp%[email protected]>
> <mercuryqtp%2bunsubscr...@googlegrou ps.com>
>  > > For more options, visit this group at
> > >http://groups.google.com/group/MercuryQTP?hl=en
> >
> > --
> > Thanks - Akshay
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<mercuryqtp%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to