If you need to get string as "T,h,i,s,i,s,T..........", use the following stmts:
 
strval = "This is a Testing process"
newStr = ""

For i = 1 To Len(strval )
' Msgbox MID(strval , i, 1)
  If  MID(strval , i, 1) = " " Then
    'Do nothing
   Else 
     newStr = newStr & Trim(MID(strval , i, 1)) & ","
     msgbox newStr
  End If
Next
newStr = Mid(newStr,1,len(newStr)-1) ' to remove last ","
msgbox newStr


Ludmila.
 


> Date: Sun, 27 Nov 2011 06:40:44 -0800
> Subject: Vb Script(Int Question)
> From: [email protected]
> To: [email protected]
> 
> Hi All,
> i have one query about vb script.i have a string Str="This
> is a Testing process".how can i retrive the string like letter wise
> like,it will show me T,h,i,s,i,s,T..........etc.
> pls reply me....
> 
> 
> 
> Regard,
> 
> Chandan Kumar Mishra
> 
> -- 
> 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
                                          

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