
Split
Sorry for reposting. Please somebody help me how to display this?<BR>if user= 33sad@hotmail.com, how can I get<BR>user= 33<BR>I used split function but it didnot work.<BR><BR>Thanks.<BR>

Left() <nm>

huh??
Why did the split functinon NOT work??<BR><BR>what was the answer?? did it give you an error when you split it with ???<BR><BR>

InStr() + Mid()
I use InStr like so:<BR>dashPos = InStr(1, yourString, "")<BR>stuffYouWant = Mid(yourString, 1, dashPos1)

Try it and you get BUGS free
Sorry but how can you use the left function??<BR><BR><BR>No way in hell IMO<BR><BR>how do you know how long the email addy is?? or the userid is??<BR><BR>since there is no way you CANNOT use the left function

How oh HOW did you read that?
Split<BR>Helpme!  3/13/2001 2:15:32 PM<BR><BR><BR> Sorry for reposting. Please somebody help me how to display this? <BR>if user= 33sad@hotmail.com, how can I get <BR>user= 33 <BR>I used split function but it didnot work. <BR><BR>Thanks. <BR><BR><BR>Please show me where he needs to know the length of the email. I'm not a freakin mind reader. He asked how to get 33, which the answer LEFT() is the best function. If that's not what he wants, he needs to learn how to ask what he wants to accomplish better. Until then, I stand by my answer, and yours is just complicating matters.

Think a little
Guess you should realise <BR><BR>user= 33 < means some user ID<BR><BR>and the email is the email of that user....only normal....<BR><BR>why would ANYONE want code to get 33 if they already KNOW it is 33 just assign 33 to a variable...the only reason this questin was asked was she wants to get the value BEFORE the  into a variable....hence the split function.<BR><BR>Oh and BTW i never gave him/her an answer...just asked him why the split fnction was not working...cause that would be the BEST (as in fastest) solution.<BR><BR>

RE: Think a little
You're reading too much into this. I'm tired of pulling information from posters. The exact answer to his question is what I gave him... I'm not assuming anymore that's in there. If that's the case, he'll reword the thing. Otherwise, if he wants 33, it's going to be a LEFT(string, 2). Period.
Posting Permissions
 You may not post new threads
 You may not post replies
 You may not post attachments
 You may not edit your posts

Forum Rules

