Dec 13, 2003 #1 newbiepg Programmer Nov 6, 2002 181 IN I have a string which is like 1.Hi you are in line 1 2. You are in line 2 I need to get the part between 1. and 2. i.e. Hi you are in line 1 How can this be done?
I have a string which is like 1.Hi you are in line 1 2. You are in line 2 I need to get the part between 1. and 2. i.e. Hi you are in line 1 How can this be done?
Dec 13, 2003 1 #2 tlhawkins Programmer Dec 28, 2000 797 US Hey I would try something like: X = Find(".",Line) + 1 FixedLine = trim(mid(Line,X,len(line)-X)) Off the top of my head I'm pretty sure you'll have to add one to X (as I've done) to get past the "." otherwise it would be included. I threw in the trim( so the leading space would be dropped. -Have fun. Travis Hawkins BeachBum Software travis@cfm2asp.com http://www.beachbumsoftware.com Upvote 0 Downvote
Hey I would try something like: X = Find(".",Line) + 1 FixedLine = trim(mid(Line,X,len(line)-X)) Off the top of my head I'm pretty sure you'll have to add one to X (as I've done) to get past the "." otherwise it would be included. I threw in the trim( so the leading space would be dropped. -Have fun. Travis Hawkins BeachBum Software travis@cfm2asp.com http://www.beachbumsoftware.com