Author Topic: DavsIDE v1.24 for QB64 (win) - Syntax Highlighting/Built-in Help/IDE Colors  (Read 6977 times)

Pete

  • Moderator
  • Hero Member
  • *****
  • Posts: 6330
  • Cuz I sez so varmint!
SUBs or FUNCTIONs, not DATA. QB64 won't allow DATA after SUBs. Qbasic moved the code. I used to print DATA to the end of BAS files.

QB64 most certainly does allow DATA statements after subs.

sub myx
end sub
data 100

--------------------

Sorry if the name of the sub call brings back bad memories.

Pete
It's only rocket science; it's not Linux!

Clippy

  • Hero Member
  • *****
  • Posts: 16446
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Well nobody told me... :'(
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

Pete

  • Moderator
  • Hero Member
  • *****
  • Posts: 6330
  • Cuz I sez so varmint!
I think it is an oversight. Not that nobody told you, but that Rob might want to make some adjustments here. I posted such in the Developer's Blog, as if you use RESTORE in a routine with DATA after a SUB, it will be OKed in the IDE, but fail to compile. So it needs to be fixed, one way or the other.

Pete
It's only rocket science; it's not Linux!

Clippy

  • Hero Member
  • *****
  • Posts: 16446
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Well I'd prefer that DATA be allowed at the end of the program. Ideally the IDE would move it like Qbasic did by separating the SUBs from the rest of the code. Apparently QB64 doesn't like the label after the SUB.

Code: [Select]
READ x
PRINT x

' RESTORE  'comment out and still fails
READ x
PRINT x

SUB me
END SUB

dat:  '<<<<<<<<<<<<<<<<<<<
DATA 1,2,3,4

BOTH of your BLOG examples fail on my machine.
« Last Edit: July 02, 2012, 01:25:48 PM by Clippy »
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

Pete

  • Moderator
  • Hero Member
  • *****
  • Posts: 6330
  • Cuz I sez so varmint!
I should cut and paste instead of rewrite. I forgot to REM out the Mylabel along with the RESTORE. Corrected it. I wonder which way Rob will want to go on this one? I would think DATA anywhere provided it is before the subs and functions. We'll see.

Pete
It's only rocket science; it's not Linux!

Clippy

  • Hero Member
  • *****
  • Posts: 16446
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
You should be able to print DATA to the end of a BAS file. He could have QB64 move the SUBs to the end of the file.
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

Clippy

  • Hero Member
  • *****
  • Posts: 16446
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Dav I noticed in my Registry that Dav's IDE was listed in Open With list... does it add itself? It never actually materialized in the Right Click menu though.

I wonder how you could add it to the Registry automatically AFTER ASKING of course...  ;)
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

Dav

  • Hero Member
  • *****
  • Posts: 516
Nope, it doesn't add itself there, Windows must have done it.  How Windows decides what programs to add there I don't know.   I do know there's not a single line of code in my IDE source that messes with the Registry (out of 16753 lines btw).

I've been curious too why & how programs get added to that list.   I usually don't see one added until I choose an "Open with.." program, or temporarily associate files to one.  I read there's a couple of places in the registry other than the OpenWithList place where applications get "remembered".  I came across a freeware tool once that let me add/delete those things, will try to find it.

- Dav

(Visit Dav's Qbasic Site) (Grab my IDE)

Clippy

  • Hero Member
  • *****
  • Posts: 16446
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Explorer>FileExts> + .BAS>OpenWithList

I found more than one that I didn't recognize, but none were visible in the menu so I took them all out except the ones I use. Recently it added Chrome when I clicked on a BAS file link from Drop Box so I was in there to get rid of that.
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

small no more

  • Sr. Member
  • ****
  • Posts: 258
  • Ask and you will receive, Seek and you will find
    • not launched
Dav,

One thing I noticed that is missing from your IDE is the View SUBs (F2) Menu Item.
A good teacher must be able to put himself in the place of those who find learning hard.


                                           Eliphas Levi

Dav

  • Hero Member
  • *****
  • Posts: 516
You're right, it does need some kind of SUB/FUNCTION handling.  That's near the top of the TO DO list and I hope to have it in the next release.

- Dav
(Visit Dav's Qbasic Site) (Grab my IDE)

pitt

  • Full Member
  • ***
  • Posts: 248
  • Where's Timmy?
    • Email
You're right, it does need some kind of SUB/FUNCTION handling.  That's near the top of the TO DO list and I hope to have it in the next release.

Unlike QB45 QB64 doesn't have it's own separate screen per SUB & FUNCTION, but only jumps to the code. I really liked having the code separated when it was displayed from the rest of the code. Could you implement something like that when selecting the SUB/FUNCTION from the "F2" menu?
Where's Timmy?

Dav

  • Hero Member
  • *****
  • Posts: 516
Yes, I like the way QB45 does that too, pitt.  It's on the list.

- Dav
(Visit Dav's Qbasic Site) (Grab my IDE)

Dav

  • Hero Member
  • *****
  • Posts: 516
Re: DavsIDE v1.20 for QB64 (win) - Syntax Highlighting/Built-in Help/IDE Colors
« Reply #148 on: October 15, 2012, 09:00:13 AM »
I have some bad news to report to those of you who like this project (it's good news if you hate it).   DavsIDE has had a setback.

The laptop I used to program the IDE took a hard fall this week and it cracked.  It failed to boot up anymore.  Hoping to save the HD data, I put it in an external USB case and ran every disk tool I can find, but the HD is dead, dead, dead.  I've lost a BUNCH of projects, including the new v1.21 of the IDE I was hoping to release this month.

I did put backups on a 8GB USB thumb drive, but for some reason it is unrecognizable whenever I plug it in.  Do magnets destroy thumb drive data?  I think it may have stayed a day in a pocket along with some "BuckyBalls".  In the past I have made backups on external HD or DVD's, but USB drive have become so cheap I've been using them lately.  I've been sloppy in making backups this year.

I do have a v1.16 backup on another PC, but that's a big step backwards to where the IDE was at.  I'm still going through some more drives to see if I put v1.20 sources somewhere else.

Sorry everyone.  :(

- Dav
(Visit Dav's Qbasic Site) (Grab my IDE)

pitt

  • Full Member
  • ***
  • Posts: 248
  • Where's Timmy?
    • Email
Re: DavsIDE v1.20 for QB64 (win) - Syntax Highlighting/Built-in Help/IDE Colors
« Reply #149 on: October 18, 2012, 12:59:36 AM »
Sorry to hear. Losing work due to software/hardware issues always takes it's toll. I wish you luck in your restoration efforts.
Where's Timmy?