Results 1 to 5 of 5

Thread: Error messages

  1. #1

    Error messages

    Can't see a list of error messages in the offline help. The current error is baffling: Error Code 22 Atom:Command error. Not an obvious one, nor can I see a reference to "Atom".

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Error messages

    Chris,

    can you post code which makes this error appear?
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Error messages



    You are right, that error is quite cryptic. I will improve in next version.

    I've check in which situations that error occurs. Here an example:
    in a numeric expression is present an atomic token does not returns anything like, for example, a keyword that is not a FUCNTION

    So something like:
    [code=thinbasic]dim L as long
    L = 1 + RANDOMIZE[/code]

    will produce the mentioned error because INCR is not a FUNCTION but a SUB

    I'm right now improving that error code meaning.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  4. #4

    Re: Error messages

    Eros, Petr,

    I have worked out what the error referred to - I was looking at this line:

    [code=thinbasic]PSQLV_EditRule (hQLV1, "Date_Joined", %EDIT_DATEPICKER,%EDIT_DEFAULTVALUE,"")
    [/code]

    I should have been looking at this line:

    [code=thinbasic]PSQLV_RClickFun (hQLV1, "Mship_Type", "View Membership Types", byval codeptr(MembtypeFun1))

    [/code]

    Call it guesswork but I suspect that the codeptr is somehow implicated! Maybe you could have an error message like "Error 1234: you are no longer using PowerBasic!"




  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Error messages

    Quote Originally Posted by Chris Holbrook
    Maybe you could have an error message like "Error 1234: you are no longer using PowerBasic!"


    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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