Hi Ahamed,


Thanks for your response!

I am sitting beside him and I am using QTP 9.2 . In my system it gives the
answer as 2 but in his system (Hokrani) it gives 3

I don't know why it is happening…



Thanks,

Gopal

On Wed, Nov 12, 2008 at 12:04 PM, Hokrani <[EMAIL PROTECTED]> wrote:

> Hi All,
>               In below code i am trying to split the string by ',' (i.e. to
> extract country code by comma). In Case 1, it display length of value is 3
> and In Case 2, it displayed as 2.
>
> 'Case 1
> Temp1="Chennai (Madras), IN"
> Temp=split(Temp1,",")
> code=Trim(Temp(1))
> Msgbox Len(code)
>
> 'Case 2
> Temp1="Chennai (Madras), IN"
> Temp=split(Temp1,",")
> ccode=Trim(Temp(1))
> Msgbox Len(ccode)
>
>
> Can anyone explain the difference ??
>
> -Hokrani
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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