HSERIN for variable length string


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    66

    Question HSERIN for variable length string

    Any idea how to read string with variable length? In HSERIN command, I'm not sure how I can allocate the variables since the length of data can change eg.

    AB
    CDEF
    GHI
    JKLMNO

    Your help is much appreciated.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If you don't have a constant terminator, or your data is not ASCII, you will probably just have to set a timeout that is long enough to cover receiving the longest possible string.
    Charles Linquist

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. Hserin parsing string...again?
    By kevlar129bp in forum Serial
    Replies: 21
    Last Post: - 9th July 2012, 16:35
  3. How to convert a HSERIN string to a hex value?
    By ShortBus in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd October 2009, 04:41
  4. parsing string from hserin
    By xxxxxx in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd April 2009, 18:42
  5. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39

Members who have read this thread : 2

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