Hi All

To eliminate special characters in a given string

strSting= "asdfwld@#dfdf$Fsfdsk^"
Print strSting

For intstart =1 to len(strSting)
    charValue=Mid(strSting,intstart,1)
    intAsciiValue = Asc( charValue)
    If (intAsciiValue>= 32 and intAsciiValue <=47)  OR (intAsciiValue>= 58
and intAsciiValue <=64) OR (intAsciiValue>= 91 and intAsciiValue <=96) OR
(intAsciiValue>= 123 and intAsciiValue <=126) Then
        'do noting
    Else
        strFinal=strFinal&charValue
    End If
Next

Print strFinal

Regards
Anjum
On Fri, Aug 17, 2012 at 8:00 PM, Siva Prasad <[email protected]>wrote:

> Hi all,
>
>
>             I need answers
> 1) how to display pyramid numbers(1,2,3,4,5,6) in vb script
> 2) how to eliminate special characters in a given string
>
> if i have a100 lines script, How we can  know 50th  Line sscript is updated
>
>
> Please help me
>
>
> Thanks in advance
>
> --
> prasad kopparapu
> +91-9032114331
>
> --
> 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
>



-- 
Regards
Anjum

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