×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Copying text out of string without deleting previous text.

Copying text out of string without deleting previous text.

Copying text out of string without deleting previous text.

(OP)
Hi,

I need to read in data from an engine, the meter sends :
B+105#H+500#C+200#D+100#A+100#F+250#G+50# through the serial port. I need to find each channels value without deleting the previous text. Pos(Letter, String) works fine but pos(Hash,String) only finds the 1st Hash.

Function works fine that I wrote, except it takes too long
copying the buffer to 8 channel variables and then deleting everything in front of the letter used and then converting it into numbers that I can use. How can I get the text I want with only one buffer and one variable.

Any suggestions?

RE: Copying text out of string without deleting previous text.

What kind of CPU, language do U use ? What does # and the letters mean ?

<nbucska@pcperipherals.com>

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources