string


Closed Thread
Results 1 to 2 of 2

Thread: string

  1. #1
    Join Date
    Oct 2005
    Posts
    32

    Exclamation string

    hello!

    how I can gain from one string received through rs 232 a precise part? example from tightens that arrives me atdt+3981123456789 would serve I alone 81123456789

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    If that's the ONLY string you want to receive you might do...
    Code:
    buffer  VAR BYTE[12]
    
    HSERIN [wait("atdt+3"),STR buffer\12]
    But, if you have more stings coming in at unspecified times, you'll probably need to receive the whole string in a buffer, and parse it manually.
    <br>
    DT

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. How to convert HEX Value as formatted BIN String ?
    By Robson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2007, 02:16
  3. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  4. String Parsing
    By eoasap in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th February 2006, 17:20
  5. Message String Table using Readcode
    By mytekcontrols in forum Code Examples
    Replies: 2
    Last Post: - 10th July 2005, 23:17

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts