Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-16-2000, 03:42 PM   #1
Member (9 bit)
 
Join Date: Aug 2000
Posts: 372
Hi, i need help, this is a simple project but i have no idea. There is one text box for entering your name, then i want a label box to display it. So it works like this

enter name text1
John Doe

label1
Doe, John

I would use a command button to make this work. Does anyone know what the code it to do that?

jotto84 is offline   Reply With Quote
Old 11-18-2000, 07:11 PM   #2
Member (3 bit)
 
Join Date: Nov 2000
Posts: 6
Quote:
Originally posted by jotto84
Hi, i need help, this is a simple project but i have no idea. There is one text box for entering your name, then i want a label box to display it. So it works like this

enter name text1
John Doe

label1
Doe, John

I would use a command button to make this work. Does anyone know what the code it to do that?


Hey, make one txtInput one lblOutput, and one button if you wish to make cmdShow.

Then for coding,
Private Sub Show_Click()
lblOutput.Caption = txtInput.Text

End Sub







farha is offline   Reply With Quote
Old 11-22-2000, 12:06 AM   #3
Member (5 bit)
 
Join Date: Apr 1999
Posts: 20
farha,

I think it would be a better idea to have 2 or 3 text boxes to store the name of the user, for example: txtFirstName and txtLastName. The reason for this is because you will never know if the user may entered their name differently in different manners.

Then to display the names, in reversed format, the coding is simply,

lblOutput.Caption = trim(txtFirstName.Text) & ", " & _
trim(txtFirstName.Text)

The trim function is to remove any blank space in front and behind the text.

I hope this helps.
albling is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2