I am getting 2 with QTP 9.2 also.
On Wed, Nov 12, 2008 at 12:16 PM, Ahamed Saifudeen <
[EMAIL PROTECTED]> wrote:

> Sounds weird.
> I am using QTP 9.5.
>
> Let me check with 9.2.
>
> On Wed, Nov 12, 2008 at 12:14 PM, Hokrani <[EMAIL PROTECTED]> wrote:
>
>> But in my system:
>>
>> Case 1 : it displayed as 3
>> Case 2 : it displayed as 2.
>>
>> I'm using QTP 9.2 version.
>>
>> -Hokrani
>>
>>
>> On Wed, Nov 12, 2008 at 12:12 PM, Ahamed Saifudeen <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hello,
>>> It displays 2 as the length in the both of the cases.
>>>
>>> Regards,
>>> Saif
>>>
>>>
>>> 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