VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Write in a text box alternating upper and lower case ... using vbstrconv Just add a TEXTBOX and a C

by RATS (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 15th September 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Write in a text box alternating upper and lower case ... using vbstrconv Just add a TEXTBOX and a COMMAND BUTTON. If you paste the code in the

API Declarations


Dim d, f, u As String



Rate Write in a text box alternating upper and lower case ... using vbstrconv Just add a TEXTBOX and a C



Private Sub Command1_Click()


    For i = 1 To Len(Text1.Text) Step 2
        u = StrConv(Mid(Text1.Text, i, 1), vbUpperCase)
        f = StrConv(Mid(Text1.Text, i + 1, 1), vbLowerCase)
        d = d & u & f
    Next
    Me.Text1.Text = d
    d = ""
End Sub

Download this snippet    Add to My Saved Code

Write in a text box alternating upper and lower case ... using vbstrconv Just add a TEXTBOX and a C Comments

No comments have been posted about Write in a text box alternating upper and lower case ... using vbstrconv Just add a TEXTBOX and a C. Why not be the first to post a comment about Write in a text box alternating upper and lower case ... using vbstrconv Just add a TEXTBOX and a C.

Post your comment

Subject:
Message:
0/1000 characters