Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Sunday, 21 February 2021

Converts Alternate Characters are Capital letters

input = "bhojaraju bhojaraju"
charCounter = 1

For i  = 1 To len(input) Step 1
    char = Mid(input,i,1)

    If char <> " " Then
        If  charCounter mod 2 = 0 Then
            outPut = output & Ucase(char)
    Else
            outPut = output & lcase(char)
    End If

        charCounter = charCounter + 1
    Else
    output = output & char
      End If
Next

msgbox output




No comments:

Post a Comment

Note: only a member of this blog may post a comment.