lunargirrl
Programmer
need urgent help
i am trying to store in a variable the e-mail address of my users, i know the start position, but how can i guess where it ends?
eG I want to extract only the e-mail address of the following data:
mylines:
Johan Anderson Myers EMAIL: johan@email.com Bangkok
Cyndi Lauper EMAIL: cyndi@lauper.com.ar Argentina
my code:
dim Int_Start_Position as integer
Int_Start_Position = InStr(myline, "EMAIL: ")
** ok, now I have the start position, i have to use the function Mid to capture the e-mail address from my string line, but i dont know how to find the final position. **
Thanks in advance,
lunar
i am trying to store in a variable the e-mail address of my users, i know the start position, but how can i guess where it ends?
eG I want to extract only the e-mail address of the following data:
mylines:
Johan Anderson Myers EMAIL: johan@email.com Bangkok
Cyndi Lauper EMAIL: cyndi@lauper.com.ar Argentina
my code:
dim Int_Start_Position as integer
Int_Start_Position = InStr(myline, "EMAIL: ")
** ok, now I have the start position, i have to use the function Mid to capture the e-mail address from my string line, but i dont know how to find the final position. **
Thanks in advance,
lunar