Hi
I currently use the code below (very helpfully supplied through this forum) to populate a users full name into a form field, I now want to take the first initial and surname to make part of an e-mail address (which will work in a large percentage of cases). How can I truncate strNTUserFullName into the shorter version?
TIA
Webflex
I currently use the code below (very helpfully supplied through this forum) to populate a users full name into a form field, I now want to take the first initial and surname to make part of an e-mail address (which will work in a large percentage of cases). How can I truncate strNTUserFullName into the shorter version?
Code:
<% 'Vars
dim strNTUser
dim strNTUserInfo
dim strNTUserFullName
' COMPILE FULL USER NAME
strNTUser = Request.ServerVariables("AUTH_USER")
strNTUser = replace(strNTUser, "\", "/")
strNTUserFullName = Session("strNTUserFullName")
if Session("strNTUserFullName") = "" then
Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
strNTUserFullName=strNTUserInfo.FullName
end if
' SET FULL USER NAME SESSION
Session("GENUID") = strNTUserFullName %>
TIA
Webflex