Reply
String Manipulation
Old 10-01-2004, 07:32 AM String Manipulation
frik's Avatar
Average Talker

Posts: 26
Location: SOuth Africa
When people add records to the DB they might type the Surname in as Google or google or GOOGLE. How can I manipulate the string so that it is uniform whenever it is displayed on a ASP Page eg: Google ?

Thank you for all your help.
frik is offline
Reply With Quote
View Public Profile Visit frik's homepage!
 
When You Register, These Ads Go Away!
     
Old 10-01-2004, 07:43 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Use UCase and LCase (UpperCase and LowerCase) functions, together with Left to get the first character, and Mid to get the rest.

Surname = UCase(Left(Surname, 1)) & LCase(Mid(Surname, 2))
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-01-2004, 07:51 AM Thank You
frik's Avatar
Average Talker

Posts: 26
Location: SOuth Africa
Thank You Minaki
frik is offline
Reply With Quote
View Public Profile Visit frik's homepage!
 
Reply     « Reply to String Manipulation
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12507 seconds with 13 queries