[SOLVED !] Serial string problem with characters


Closed Thread
Results 1 to 3 of 3

Thread: Serial string problem with characters896 days old

  1. #1
    deaskew
    Guest deaskew's Avatar

    0 Not allowed!

    Default Serial string problem with characters

    I am having problems when I compile my program with a serial string using characters, I get an error. See below

    DIM Serstring AS BYTE
    STR Serstring = "NORTH" Error message. Assignment variable must be a Byte array

    I see this is published in the manual, so I am not sure why it doesn't Work.
    Dave

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,374
    Thumbs Up
    Received: 87
    Given: 183
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: Serial string problem with characters

    Not exacley sure what you're trying to do but perhaps
    Dim Serstring[7] As Byte
    StrN Serstring = "NORTH"
    What page of the manual?
    George.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    844
    Thumbs Up
    Received: 14
    Given: 16
    Total Downloaded
    1.03 GB

    0 Not allowed!

    Default Re: Serial string problem with characters

    You've made it a byte and not a string, that's why you get the error.

    Code:
    Dim Serstring as String * 5

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. [SOLVED !] String handling in serial
    By Pic in forum USART and Enhanced USART module / LIN bus support
    Replies: 0
    Last Post: 9th July 2016, 11:45
  2. Storing characters problem
    By davidsgr in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 10th August 2009, 18:25
  3. [SOLVED !] 32 byte serial string, terminated by null
    By Eicen in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 10th May 2008, 19:18

Tags for this Thread

Posting Permissions

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