lower case to upper case

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • j0rdanf1
    New Member
    • Oct 2006
    • 35

    lower case to upper case

    hi people,

    I have rather an odd question, all the information I have inputted into my aql database is lower case, however, on some of the pages i display i want to retrieve the code in an uppercase format, is their any straight forward way to do it?

    Cheers,

    Code:
    <%
    
    Dim  strbasicsearch, strSQL, objConn, objRs
    strbasicsearch = Request.QueryString ("basicsearch") 
    
    strSQL = "select * from album where band_name like '%"& strbasicsearch &"%'"
    
    
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.Open "dsn=Oracle;uid=user;pwd=pass"
    Set objRs=objConn.Execute(strSQL)
    
    
    <table>
    <tr>
    <td width="400" valign="middle" class="style10"><strong><%=objRs("band_name")%></strong> </td>
    </tr>
    </table>
  • markrawlingson
    Recognized Expert Contributor
    • Aug 2007
    • 346

    #2
    That is weird. Have you tried running a query directly in the database and see what you get back?

    By the way, you can also use the LCase() and UCase() functions to change the case. So if you want everything in lower case, you could use the LCase function to get there.

    Comment

    • j0rdanf1
      New Member
      • Oct 2006
      • 35

      #3
      Originally posted by markrawlingson
      That is weird. Have you tried running a query directly in the database and see what you get back?

      By the way, you can also use the LCase() and UCase() functions to change the case. So if you want everything in lower case, you could use the LCase function to get there.
      great, but how would i attach the Ucase() function to the requested code?

      Comment

      • marting
        New Member
        • Mar 2008
        • 7

        #4
        Hi

        You can use the UCase() and LCase() like this...

        Code:
        <%=UCase(objRs("band_name"))%>
        Code:
        <%=LCase(objRs("band_name"))%>
        Because I'm sooooo kind, I'll add your code below with UCase() applied.
        Code:
        <table>
        <tr>
        <td width="400" valign="middle" class="style10"><strong><%=Ucase(objRs("band_name"))%></strong> </td>
        </tr>
        </table>
        Enjoy...

        Comment

        • j0rdanf1
          New Member
          • Oct 2006
          • 35

          #5
          You are a legend, thank-you my friend that has solved a big problem

          Originally posted by marting
          Hi

          You can use the UCase() and LCase() like this...

          Code:
          <%=UCase(objRs("band_name"))%>
          Code:
          <%=LCase(objRs("band_name"))%>
          Because I'm sooooo kind, I'll add your code below with UCase() applied.
          Code:
          <table>
          <tr>
          <td width="400" valign="middle" class="style10"><strong><%=Ucase(objRs("band_name"))%></strong> </td>
          </tr>
          </table>
          Enjoy...

          Comment

          Working...