Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 5th, 2003, 12:58 PM
hurricane850 hurricane850 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: FLorida
Posts: 45 hurricane850 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to hurricane850 Send a message via Yahoo to hurricane850
Uppercase A String

Hello,

I was wondering how can I get the variable string return as an UPPERCASE string. I have tried using this sql statement but can't get the variable to print out as all UPPERCASE string. I am trying to display the variable in an input field in a form. Would appreciate the input. Thanks!



String sql = "Select switch_id, UPPER(make), UPPER(model), UPPER(version), service_date, cost, mark from switch ";


String Model = rset.getString("model")

Reply With Quote
  #2  
Old November 5th, 2003, 02:58 PM
ishnid's Avatar
ishnid ishnid is offline
kill 9, $$;
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 6,819 ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level)ishnid User rank is General 42nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 4 Months 1 Week 5 Days 19 h 23 m 31 sec
Reputation Power: 3763
Using the column name for the getString method may be affecting it. Try using the column index instead:
Code:
String Model = rset.getString(3);

Reply With Quote
  #3  
Old November 5th, 2003, 04:06 PM
acey acey is offline
Swede
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Sweden
Posts: 47 acey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
Or just do it in Java instead of SQL:
Code:
String Model = rset.getString( "model" ).toUpperCase();

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Uppercase A String


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 1 - Follow our Sitemap