Manipulation of string array


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Apr 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Post

    Thanks for the reply Ron.
    I have tried to print out 38 from the string which I can if I use
    SEROUT2 portb.2,84,[LAT[0],LAT[1],10,13] ' PRINTS OUT 38 FROM THE STRING (3810.7890)
    IF I GO
    DEGLAT = LAT[0] * 10 + LAT[1] 'DEGLAT IS DEFINED AS DEGLAT VAR BYTE
    I would have thought I would have got an output of 38 when I used the following
    ' Instead I got 36
    If I use the following:
    DEGLAT = LAT[0] ' (DEGLAT) IS DEFINED AS (DELGAT VAR BYTE)
    I = LAT[1] ' (I) IS DEFINED AS (I VAR BYTE):
    SEROUT2 portb.2,84,[DEGLAT,I,10,13] ' I get 3€ Instead of 38

    Thanks Benny007
    Last edited by Benny007; - 23rd April 2008 at 12:56.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 04:46
  3. Replies: 1
    Last Post: - 28th January 2010, 22:15
  4. String Manipulation
    By Darrenmac in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th April 2008, 14:39
  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 : 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