Visual Basic Expert


Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you'll have to parse the string on the PC side. look for instr MID$, LEFT$ well at least those VB command.

    Also The Bruce Website may give you some pointers...
    http://www.rentron.com/parsingstrings.htm

    Say thanks to Bruce to provide such great free stuff

    Personnaly i never send preamble, just send all value to PC then parse the string. USE DEC3 for byte, DEC5 for word ensure to have a fix string format
    Code:
    a var byte
    b var byte
    c var word
    a=10
    b=100
    c=12345
    
    hserout [dec3 a, dec3 b, dec5 c]
    this will send 01010012345 in a fix string format (length). Easy huh!
    Last edited by mister_e; - 13th November 2005 at 19:31.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Visual Basic 2005
    By keithdoxey in forum Off Topic
    Replies: 4
    Last Post: - 1st August 2007, 12:10
  4. PIC to serial with visual basic
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 31st March 2007, 16:06
  5. Visual Basic 6 and Pic com
    By shawn in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th September 2005, 05:21

Members who have read this thread : 0

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