|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
How to truncate a word
I use this code to assign the current usersname to a variable called "username"
Code:
username = Request.ServerVariables("AUTH_USER")
If i wrote this Code:
response.write(username) I get something like myomain\username. I just want the "username" bit not the "mydomain\" . How can I truncate it? Last edited by phantom_turtle : July 23rd, 2003 at 10:27 PM. |
|
#2
|
|||
|
|||
|
Response.Write Mid(username, Instr(username, "\") + 1)
__________________
Programmer's Corner |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > How to truncate a word |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|