Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Part of a string 1

Status
Not open for further replies.

newbiepg

Programmer
Nov 6, 2002
181
0
0
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?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top