Qbasicnews.com

Full Version: Request for FBIde function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to see a function that automatically creates SUB and FUNCTION declarations. It wouldn't be hard to implement at all. Right now I have one that puts the declarations in a seperate file, then I just copy and paste them into the main code or simply include the header file:

Code:
OPEN "d:\contactii\inspiraion.bas" FOR INPUT AS #1
OPEN "d:\contactii\inspiraion.bi" FOR OUTPUT AS #2
DIM a as string
WHILE NOT EOF(1)
   INPUT #1, a
   IF LEFT$(TRIM$(a), 4) = "SUB " OR LEFT$(TRIM$(a), 9) = "FUNCTION " THEN PRINT #2, "DECLARE " + TRIM$(a)
WEND
CLOSE
sleep

I find it a pain to make a sub and then go back up to the top and create the declaration, and this program that I am working on right now has 78 subs without declarations.
rather than auto createing the subs automatically, you should be able to open the sub in a new tab for quick editing, like have a right click option in the subs menu allowing you to open in a mini window or a new tab. I agree it gets a little annoying with larger programs, but I would \rather create my own subs, editing them in a seperate window as an optional thing would be convinient tho.
I would rather like to see FBide under gnome Tongue
Right now i have to cope with SciTE and i dont realy like it that much.

EDIT:
Wine/Cedega isnt an option as it sucks with GUI-Apps...