Problem in the proton basic manual?


+ Reply to Thread
Results 1 to 4 of 4

Thread: Problem in the proton basic manual?6 days old

  1. #1
    Junior Member Henkie's Avatar
    Join Date
    Dec 2014
    Posts
    3
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    1.13 GB

    0 Not allowed!

    Default Problem in the proton basic manual?

    I try to practisch the VAL command but get a syntax error. See below from the manual.

    IDE version 2.0.3.3
    Loader version 1.0.2.5
    Compiler version 3.7.3.3


    Proton Pic Basic Compiler manual
    page 363
    Copy of Val example 1, PIC 16F877


    ' Convert a string of hexadecimal characters to an integer
    Include "Proton_4.Inc" ' Use the Proton board for the demo
    Dim String1[10] as Byte ' Create a byte array as a String
    Dim Wrd1 as Word ' Create a variable to hold result
    DelayMs 100 ' Wait for the LCD to stabilise
    Cls ' Clear the LCD
    Str String1 = "12AF",0 ' Load the String with Hex digits
    Line 37 >>> Wrd1 = Val (String1,Hex) ' Convert the String into an integer
    Print Hex Wrd1 ' Display the integer as Hex
    Stop


    Error (line 37):Closing parenthasis missing!

    I can't find it, any suggestions?

  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
    Junior Member ElektroArt's Avatar
    Join Date
    Mar 2010
    Posts
    63
    Thumbs Up
    Received: 2
    Given: 2
    Total Downloaded
    15.08 GB

    0 Not allowed!

    Default Re: Problem in the proton basic manual?

    Version 3.7.3.9 also did not error.
    The original code sample is below.

    ' Convert a string of hexadecimal characters to an integer
    Include "Proton_4.Inc" ' Use the Proton board for the demo
    Dim String1[10] as Byte ' Create a byte array as a String
    Dim Wrd1 as Word ' Create a variable to hold result
    DelayMs 100 ' Wait for the LCD to stabilise
    Cls ' Clear the LCD
    Str String1 = "12AF",0 ' Load the String with Hex digits
    Wrd1 = Val(String1,Hex) ' Convert the String into an integer
    Print Hex Wrd1 ' Display the integer as Hex
    Stop
    Last edited by ElektroArt; 14th September 2020 at 19:28.

  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
    Junior Member Henkie's Avatar
    Join Date
    Dec 2014
    Posts
    3
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    1.13 GB

    0 Not allowed!

    Default Re: Problem in the proton basic manual?

    Thank you ElektroArt at least I can give it a try.
    It is the same code, I copy and paste it from the manual so its errer free I asume.
    First now is to get the compiler you mentioned and try it again.
    Keep you informed and thanks again. henkie

  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.

  7. #4
    Junior Member Henkie's Avatar
    Join Date
    Dec 2014
    Posts
    3
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    1.13 GB

    0 Not allowed!

    Default Re: Problem in the proton basic manual?

    I found an old note-book with an old proton compiler vers.3.5.8.6
    This compiler brought no error and the result was correctly displayed.
    I updated this note-book to the newest windows version and build as on my own machine.
    W10, 64 bit etc. Tested again with same perfect result.
    Then I installed the old compiler vers.3.5.8.6 om my own machine and again the result was perfect. Unbelievable.
    To day I will install the newest version again and wil see what happens.
    I will not report this because i think it's not a compiler problem anymore but something in my system.
    @ ElektroArt Thank you for your time and trying to support me.
    henkie

  8. 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. PIC Basic to Proton Basic Convertion
    By CocaColaKid in forum Absolute Beginners Section
    Replies: 20
    Last Post: 21st December 2019, 15:54
  2. Where can I download the manual for the Proton basic language?
    By flexassem in forum Absolute Beginners Section
    Replies: 9
    Last Post: 3rd May 2016, 17:53
  3. [SOLVED !] Basic Programming training manual
    By roy jh in forum Pre-Sales and Upgrade Questions
    Replies: 1
    Last Post: 26th July 2005, 09:01
  4. converting from another basic to Proton Basic
    By Weird in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 17th April 2005, 21:36

Posting Permissions

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