Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Pattern : Alternet Character Capital
#4
Solved: 9 Years, 2 Months ago
here is the updated code.
Code:
input = "abhijit abhijit"
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
Note:- I have done it based on the pure requirement in this query. Ideally we have to check if the value is an alphabet and then change the case.
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: String Pattern : Alternet Character Capital - by supputuri - 09-03-2015, 09:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to use wild character in string amit25007 2 2,569 03-09-2016, 10:36 AM
Last Post: amit25007
  VB Script:number of times a character appears in a string with position Jyobtech 1 12,022 08-07-2013, 01:03 PM
Last Post: anil2u
  Find capital letter in a string Arul 2 8,736 12-27-2011, 11:11 PM
Last Post: Arul
  How to have a variable that has a string comma string .. shareq1310 5 5,045 11-09-2011, 03:33 PM
Last Post: parminderdhiman84
Question String Comparison using escape character Charanpreet 2 4,016 04-21-2011, 07:12 PM
Last Post: sreekanth chilam

Forum Jump:


Users browsing this thread: 1 Guest(s)