Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A little bug of Help for an insane coder
#1
Hi friends

I was playing with code to translate into a versatile version the code of scrolling text into SCREEN 0 and...
I fall into this feature/bug of the internal help of QB64pe IDE...

in old QB4.5 and Qbasic if you put the text cursor under the name of a SUB or a FUNCTION, by pressing F1 (help key) you get a help window in which you see the name of the SUB/FUNCTION and the list of its parameters as in the line of declaration of the SUB/FUNCTION.

Well until this point all is the same in old QB4.5 and in QB64pe.
But an insane coder ( somebody that I don't know  Smile ) has used this feature to have a clear list (towards the order and the type of data) of parameters to write in his code without going up and down in the code (for example using the navigation keys and setting bookmarks) .
Ok what is the matter?
please look at this screenshot and you can realize in a second:


[Image: Help-on-custom-SUB-missing-parameters-Im...013149.jpg]

What do you think about this accidental discovery?
Reply
#2
Oh my god, thanks for sharing this! I've lost count how many times I had to scroll through the entire code just to check the parameters Cry
Reply
#3
(12-07-2024, 01:43 AM)Bhsdfa Wrote: Oh my god, thanks for sharing this! I've lost count how many times I had to scroll through the entire code just to check the parameters Cry

Glad to give a good tip for coding.
Please be aware to use until 11 parameters for your SUB/FUNCTION for now. (it is rare to use so many parameters, but unwilling I got the limit)
IF & WHEN someone, that is able to do, changes this feature to a more flexible or larger method to build the onfly Help page for custom SUB/FUNCTION.

Here a difference with old  Qbasic


[Image: immagine-2024-12-07-032031470.png]
Reply
#4
I am sure I ran into this bug myself and then @RhoSigma patched it. What I do not remember is when.

If you are using v3.14.1 and are seeing the issue then I am sure the fix will be in the next release.
Reply
#5
(12-07-2024, 05:24 PM)a740g Wrote: I am sure I ran into this bug myself and then @RhoSigma patched it. What I do not remember is when.

If you are using v3.14.1 and are seeing the issue then I am sure the fix will be in the next release.

Yep, this bug has already been fixed and will be available with the next release, which shouldn't be so far away from now.

More than that, the IDE will provide the same syntax reference in the status area messages when you have mismatched arguments, like it does for the build-in commands. Hence, you won't probably even need the F1 help for it anymore.
Reply
#6
Great @RhoSigma! 

@a740g
Thanks for feedback. 
Now I don't feel so alone in my experience.
Reply




Users browsing this thread: 4 Guest(s)