|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
String Manipulations
Hi if anyone could help me I would surely be grateful. I am rather new at the visual basic language and I am getting better at it but I have problem that I can not seem to figure out. I need to use string manipulation to do this program..for example strname.remove or substring. I need an input box that asks for your name (John Doe). Then after you input your name it displays your name like Doe, John in the label lblname.text. It seems like a fairly easy task but I am just not doing something right.
Any help is some help Thanks Dave |
|
#2
|
|||
|
|||
|
Have you pressed the F1 key and reviewed the online documentation to see all the string functions available to you?
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
||||
|
||||
|
Is this for VB 6.0 or VB.NET?
|
|
#4
|
|||
|
|||
|
Quote:
It is Microsoft Visual Studio .Net 2003 |
|
#5
|
||||
|
||||
|
Example:
In a buttons click event. Code:
Dim strName As String
Dim arrName() As String
Dim i As Integer
strName = InputBox("Enter your name", "Your Name", , , )
arrName = Split(strName, " ")
For i = 0 To UBound(arrName)
strName = arrName(1) & ", " & arrName(0)
Next
MsgBox(strName)
|
|
#6
|
|||
|
|||
|
Quote:
Thank you very much it worked perfectly |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > String Manipulations |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|