Results 1 to 4 of 4

Thread: Variable not defined or misspelled Keyword

  1. #1

    Variable not defined or misspelled Keyword

    Hi Eros,

    just to report that this error message is inconsistent :

    when you forget USES "CONSOLE"
    you get a useful message : Unknown Keyword SUGGESTION: consider adding the following line in your code: USES "CONSOLE" (err code 18)

    but if you forget USES "MATH"
    you get : Variable not defined or misspelled Keyword (err code 30)

    this last err message is confusing.
    Last edited by DirectuX; 28-10-2019 at 10:36. Reason: disable smiley for " code 18) "
    ThinBasic ALPHA - Windows 8.1 x64

  2. #2
    it is may be No Bug, because
    USES "Math"
    print Pi
    Pi here is defined in the Math Module and will print 3.14159265358979323
    double Pi = 3.14159265358979323
    print Pi
    will print 3.14159265358979323

  3. #3
    Hi Primo,
    I didn't mean a bug, just that the error message given by thinBasic is leading to confusion.
    ThinBasic ALPHA - Windows 8.1 x64

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Brno - Czech Republic
    Blog Entries
    Rep Power
    Hi Primo,

    I investigated the issue - it seems that in general none of the symbols from Math module is recognised.

    It would be definitely nice to have it fixed.

    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

Similar Threads

  1. Article: User defined entities
    By Petr Schreiber in forum vBCms Comments
    Replies: 0
    Last Post: 03-01-2011, 20:52
  2. User Defined Types
    By Charles Pegge in forum O2h Compiler
    Replies: 3
    Last Post: 18-03-2009, 01:28

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