Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Location
    Midlands
    Posts
    135

    Unanswered: 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

  2. #2
    Join Date
    Jun 2009
    Location
    Midlands
    Posts
    135
    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 06:10.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •