Steve Railsback Posted November 23, 2004 Posted November 23, 2004 Greetings all - I want to pull the user name from an email which will be used for login and web account information. EX: Entering "[email protected]" into the "emailAddress" field would also populate the "login" field with "someguy" and "web" field with "http://student.school.edu/someguy". Using the left function does not work because the user name can be 1 to 8 characters long, and the right function only grabs the count from the right. Any ideas or suggestiongs? Going crazy here and I'm sure there's a simple way to do it. -steve
-Queue- Posted November 23, 2004 Posted November 23, 2004 login := Left( emailAddress, Position( emailAddress, "@", 1, 1 ) - 1 ) web := "http://student." & Right( emailAddress, Length(emailAddress) - Position( emailAddress, "@", 1, 1 ) ) & "/" & login
Steve Railsback Posted November 23, 2004 Author Posted November 23, 2004 Hey thanks! Don't think I could have figured out that one. Played around with it, and found a short cut (well less typing) web :="http://url/" & Left( emailAddress, Position( emailAddress, "@", 1, 1) -1) Appreciate the help! -st
-Queue- Posted November 23, 2004 Posted November 23, 2004 Hmm. That will give you http://url/someguy, not http://student.school.edu/someguy, unless I'm missing something.
Recommended Posts
This topic is 7374 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now