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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String manypulation

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hallo there,
Can anyone give me a thand with this?

I have a text file that has the following structure:

File name: name
Discription: club members
================================================
Member number: 0012
Member name: Icheron
Member ocupation: Student
Member subscribe date: 2-2-2001
================================================
Member number: 0358
Member name: Jones
Member ocupation: Programmer
Member subscribe date: 16-5-1999
================================================




What I need to know is how I can extract this informations and insert them into a database.

Can anyone help me!
tnx

 
Me again,

The information I need to extract is:

Member number:
Member name:
Member ocupation:
Member subscribe date:
 
I don't think CR will do it, but you might look at a products like Monarch, or Data Junction. Or, you could run a couple of replace actions in MS Word to get this into a comma separated format.

Something iike Replace:

<CR> Member number: with a comma
(same for the other 3 label strings.

Then replace the <CR> equal sign string <CR> with just a single <CR>

You should end up with something like:
0012, Icheron, Student, 2-2-2001
0358, Jones, Programmer, 16-5-1999

This type of text file can easily be read by Excel or MS Access.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top