Hi Siba prasad,

Find the below code.
str=Inputbox("InputString") 'Input your string
counter=0
Dim arr2()
While str<>""
    strChar=mid(str,1,1)
    arr1=split(str,strChar)
    ReDim preserve arr2(counter)   
    If ubound(arr1)>1 Then
        arr2(counter)=concateDStr(arr1,strChar)
    else
        arr2(counter)=strChar
    End If
    counter=counter+1
    str=replace(str,strChar,"")
Wend

For i=0 to ubound(arr2)
    print arr2(i)
Next

Function concateDStr(array1,strChar)
    retString=""
    For i=0 to ubound(array1)-1
        retString=retString&strChar
    Next
    concateDStr=retString
End Function


For your 2nd question:

print Environment("Your Built-In Env Variable Name")
Ex: Environment("UserName") etc...

Let me know if you need any further info.

Thanks,
Uday
QTP Videos <http://www.youtube.com/user/AnemUday/videos>

On Wednesday, 11 December 2013 20:00:55 UTC+5:30, Mishra Siba Prasad wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *1. what is place holder in qtp , how to use it.Ex:str="applep"write the 
> code in which u will get the below 
> output.var_1=avar_2=pppvar_3=lvar_4=eN.B:=Do not do hard code.2.how to use 
> in built Environment variable.Hello, QTPWORLDlites, please  help me by 
> solving these 2 questions.Thanks in advance.Smiles,Siba Prasad 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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to