Print Page | Close Window

Uppercase to Lowercase

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10483
Printed Date: 31 March 2026 at 11:50am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Uppercase to Lowercase
Posted By: Rebel Gaa
Subject: Uppercase to Lowercase
Date Posted: 17 May 2004 at 12:09pm
Anyone know of an application to convert uppercase text to lowercase text?



Replies:
Posted By: Bluefrog
Date Posted: 17 May 2004 at 12:24pm

myLowerString=lcase(oldString)

myUpperString=ucase(oldString)

etc...



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music


Posted By: Rebel Gaa
Date Posted: 17 May 2004 at 12:25pm
Any application that i can input text to and it will convert it?


Posted By: Bluefrog
Date Posted: 17 May 2004 at 12:30pm
Lots of text editors will do it. EditPlus has that function. Select the text and then do something like <CTRL + U> or whatever. Have a look at text editors - they can generally do a LOT with text. I suppose that is why they are called "text editors"

-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music


Posted By: pmormr
Date Posted: 17 May 2004 at 5:47pm


-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Semikolon
Date Posted: 18 May 2004 at 9:43am
Originally posted by Bluefrog Bluefrog wrote:

myLowerString=lcase(oldString)

myUpperString=ucase(oldString)

etc...



maybe we can mention that this is ASP method.. put it into an asp page and it will convert the text


Posted By: zMaestro
Date Posted: 19 May 2004 at 2:09am

yes, make it as a form, and in another page write this.

Response.Write lcase(Request.Form)



Posted By: zMaestro
Date Posted: 19 May 2004 at 2:11am

the question now is, If i have a text written ALL IN CAPITAL LETTERS, I want to change it into small case But reserve the first letter in each word Capital.

now, it's a little difficult.



Posted By: Phat
Date Posted: 19 May 2004 at 4:33am
Originally posted by zMaestro zMaestro wrote:

the question now is, If i have a text written ALL IN CAPITAL LETTERS, I want to change it into small case But reserve the first letter in each word Capital.

now, it's a little difficult.



Must have way too much time on my hands. So here you go


<%
Public Function Correctcase(Thestring)

    Dim iCounter 'As Integer
   
   
    If Thestring <> "" Then
        Thestring = LCase(Thestring)
        Thestring = UCase(Left(Thestring, 1)) + Right(Thestring, Len(Thestring) - 1)
        For iCounter = 1 To Len(RTrim(Thestring)) - 1
             If Mid(Thestring, iCounter, 1) = " " Or Mid(Thestring, iCounter, 1) = "-" Or Mid(Thestring, iCounter, 1) = "'" Or Mid(Thestring, iCounter, 1) = "." Then
         Thestring = Left(Thestring, iCounter) + UCase(Mid(Thestring, iCounter + 1, 1)) + Right(Thestring, Len(Thestring) - (iCounter + 1))
        End If
        Next
        Correctcase = Thestring
    End If

   
   
End Function

Dim strText
Dim strNew
Dim tmpString
Dim i
Dim splitText

splittext = "the question now is, If i have a text written ALL IN CAPITAL LETTERS, I want to change it into small case But reserve the first letter in each word Capital."

strText = Split(splittext, " ", -1  , 1)

For i = 0 To UBound(strText) - 1
    tmpString = strText(i)
    strNew = strNew & Correctcase(tmpString) & " "
Next

Response.Write(strNew)

%>




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net