I have executed your code and for me the length of the country code is displayed 2 in both the cases.Please let me know what is ur exact problem
On 11/12/08, 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 -~----------~----~----~----~------~----~------~--~---
