You are here: PSPad forum > English discussion forum > Request : Code Explorer for QBasic
Posted by: pspad | Date: 2015-05-22 09:41 | IP: IP Logged
I am not sure, but part of source code are line numbers?
Nice code. Where are the functions or procedures?
Edited 1 time(s). Last edit at 2015-05-22 09:42 by pspad.
Posted by: pythonui | Date: 2015-05-22 09:43 | IP: IP Logged
Hello,
Yes, line numbers are part of source code as this will run on that type of complier.
Posted by: pythonui | Date: 2015-05-22 09:44 | IP: IP Logged
TEST1 to 6 are functions
Function call is 'GOSUB'
NOTE : All with ':' include at end is function
Edited 1 time(s). Last edit at 2015-05-22 09:45 by pythonui.
Posted by: pspad | Date: 2015-05-22 10:00 | IP: IP Logged
As I remember, line endings with : are labels and gosub is simple jump to label.
What you wrote before was basic with array and functions declaration. Now you switch into some prehistoric basic source code.
PSPad code exploere doesn't handle Basic source with numbered lines.
What do you want to show in Code explorer in this case? Labels?
Posted by: pythonui | Date: 2015-05-22 10:06 | IP: IP Logged
Yes
NOTE: This is one type of QBasic coding!publish.tbred.com
Edited 2 time(s). Last edit at 2015-05-22 10:13 by pythonui.
Posted by: pspad | Date: 2015-05-22 10:26 | IP: IP Logged
This is a new QBasic code exploer (your source):
It works with numbered and unnumbered lines from QBasic, cause both cases are allowed
Posted by: pythonui | Date: 2015-05-22 10:32 | IP: IP Logged
Thats Great!
But I am not able to see variables and arrays there!
NOTE : I think it should be a part of PSPAD now!
Edited 1 time(s). Last edit at 2015-05-22 10:36 by pythonui.
Posted by: pspad | Date: 2015-05-22 10:43 | IP: IP Logged
How can I make a difference of variable and arrays declaration and assignment if there is none?
Posted by: pythonui | Date: 2015-05-22 10:45 | IP: IP Logged
In the javascript code explorer it is there!
Edited 1 time(s). Last edit at 2015-05-22 10:48 by pythonui.
Posted by: pspad | Date: 2015-05-22 10:54 | IP: IP Logged
pythonui:In the javascript code explorer it is there!
Yes, because VAR something is declaration in JScript
Your LET something isn't declaration, but assignment and can be thousands times for same variable in your source
I can add DIM xxx into code explorer - it's declaration for arrays and variables.
If you use variables without declaration, they wont be listed in code explore.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR