Author Topic: My QB64 wish list  (Read 3053 times)

0 Members and 1 Guest are viewing this topic.

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Offline GTC

  • Newbie
  • Posts: 49
  • Programmer's motto: *This* time it will work.
    • View Profile
My QB64 wish list
« on: January 16, 2021, 02:23:44 am »
If there's a wish list for future releases of QB64 then I can't find it here.

Apart from the implementation of ON COM (mentioned elsewhere), I would love to see the equivalent of VB's Err.Description:

Quote
The Err.Description provides details of the error that occurs. This is the text you normally see when an error occurs e.g. “Type Mismatch” The Err. Number is the ID number of the error e.g. the error number for “Type Mismatch” is 13.

Maybe  _ERRORTEXT (ErrorNumber)
« Last Edit: January 16, 2021, 03:25:10 am by GTC »

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
Re: My QB64 wish list
« Reply #1 on: January 16, 2021, 03:04:18 am »
It's funny you mention this, I asked on discord last night if such a thing exists.

Should be easy enough to add; in the meantime here's the list if you'd like to copy it into your program: https://github.com/flukiluke/65/blob/master/src/errors.bm

Offline GTC

  • Newbie
  • Posts: 49
  • Programmer's motto: *This* time it will work.
    • View Profile
Re: My QB64 wish list
« Reply #2 on: January 16, 2021, 03:27:52 am »
Thanks for that!

It's more extensive than the Wiki list: https://www.qb64.org/wiki/ERROR_Codes
« Last Edit: January 16, 2021, 03:31:35 am by GTC »

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
Re: My QB64 wish list
« Reply #3 on: January 16, 2021, 07:43:38 am »
Yes, I copied it directly from the runtime function that generates the pop-up.

Perhaps one of the wiki people would like to update the wiki page.

Hang on, I'm one of the wiki people...

FellippeHeitor

  • Guest
Re: My QB64 wish list
« Reply #4 on: January 16, 2021, 11:59:43 am »
Notice that some of those errors are considered critical and won't even trigger the error handler - they'll fail and quit. Nevermind. You got the critical ones out.
« Last Edit: January 16, 2021, 12:02:28 pm by FellippeHeitor »

Marked as best answer by GTC on January 17, 2021, 12:14:16 pm

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
Re: My QB64 wish list
« Reply #5 on: January 17, 2021, 07:56:00 am »
We now (when the CI finishes building) have a _ERRORMESSAGE$ function.

It defaults to returning the message of the current error (i.e. in an ON ERROR handler), but will accept an argument for an explicit error number too.

FellippeHeitor

  • Guest
Re: My QB64 wish list
« Reply #6 on: January 17, 2021, 08:40:57 am »
🤩