shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase
shorten string and put to lowercase shorten string and put to lowercase
shorten string and put to lowercase
Go Back  Xtreme Visual Basic Talk > > > shorten string and put to lowercase


Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2003, 09:19 PM
charlietaco charlietaco is offline
Freshman
 
Join Date: Oct 2003
Posts: 29
Default shorten string and put to lowercase


i was wondering if anyone can help me in the writing of the code to take the user input in three different text boxes (first name, middle initial, and last name) and transform this information into a username. the username must consist of the first 5 letters of the last name followed by the first letter of the first name and the middle initial. EXAMPLE: the name Smith P Johnson is input via 3 different text boxes. the username that is returned would be: johnssp (must be lowercase). ANY help would be appreciated.
Edit by Deadalus: This thread was posted wrongly in the .NET section first, which is why the initial answers didn't make sense. I've removed them.

Last edited by Deadalus; 12-21-2003 at 07:36 PM.
Reply With Quote
  #2  
Old 12-29-2003, 04:45 PM
MoUsEy's Avatar
MoUsEy MoUsEy is offline
Centurion
 
Join Date: Dec 2003
Posts: 105
Default

use

dim username as string

username = Left(Text3.Text, 5)

username = username & Left(Text1.Text, 1)

username = username & Text2.Text

username = LCase(username)

hope that helps

__________________
I Cannot Answer That As It May Covict Me
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase shorten string and put to lowercase
shorten string and put to lowercase
shorten string and put to lowercase
 
shorten string and put to lowercase
shorten string and put to lowercase
 
-->