If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > how do i set a variable to this value?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-09, 11:20
mind_grapes mind_grapes is offline
Registered User
 
Join Date: Jun 2009
Location: Midlands
Posts: 133
how do i set a variable to this value?

Hi all, hope someone out there can help with this issue.

I a Dim called "userNameTest", and at the moment its assigned this:

userNameTest = request.ServerVariables("AUTH_USER")

however this brings back additonal information that i dont need, for some reason it brings back this:

"intranet/myname"

But i need to get rid of the "intranet/" and then assign "myname" as the value.


I know you can do this: (right(userNameTest,9)) - but how do i combine the two?


Can anyone help as i dont know how i would write this.

kind regards
MG
Reply With Quote
  #2 (permalink)  
Old 09-02-09, 12:02
mind_grapes mind_grapes is offline
Registered User
 
Join Date: Jun 2009
Location: Midlands
Posts: 133
Hi all, just checking back.

Its always kind to let people know when things have been done and so here it is.

Code:
userNameTest = Mid(request.ServerVariables("AUTH_USER"), InStr(request.ServerVariables("AUTH_USER"), "\")+1)
Thanks all

Regards
MG

Last edited by mind_grapes; 09-03-09 at 05:10.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On