🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #358

QuickBasic editor question

#358
From: arritt
Date: Fri, 20 Nov 1992 13:25
30 lines
1945 bytes
Is there any way to temporarily disable features of the QuickBasic 4.5
editor?  There are a number of minor annoyances but the biggest problem
I have is related to making subroutines.  

Often when writing a program I'll decide "hmm, that block of code
would be better as a subroutine".  But when I try to put a SUB 
statement before an already-existing section of code,
the editor takes me out of the original routine and creates a new,
empty subroutine.

(IMPORTANT:  Notice I'm **NOT** talking about developing a really new
             subroutine from scratch, but extracting already-present
             code to make a SUB .  Typically this would be starting from old 
             "spaghetti" code and converting it to a more structured form.)

I can avoid this by saving the program as ASCII, getting out of QB,
using a text editor to insert the "SUB ... END SUB" statements around the
appropriate lines of code, moving the new SUB to the bottom of the
file, then getting back into QB.  But something tells me there's got to
be an easier way ....

Thanks for any help.  Apologies if this is a dumb/RTFM question but
I haven't been able to find anything in the docs.
________________________________________________________________________
Raymond W. Arritt                     |  Dept. of Physics and Astronomy  
Assistant Professor                   |  University of Kansas 
arritt@kuhub.cc.ukans.edu             |  Lawrence, KS  66045  
Apr  1 12:29:21 timed[92]: THIS MACHINE IS A SLAVE
Apr  1 12:29:27 timed[92]: THIS MACHINE IS A CANDIDATE
Apr  1 12:29:31 timed[92]: This machine is master
Technical Details
Message-ID: <1992Nov20.072552.44968@kuhub.cc.ukans.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!kuhub.cc.ukans.edu!arritt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!kuhub.cc.ukans.edu!arritt
From: arritt@kuhub.cc.ukans.edu
Newsgroups: alt.lang.basic
Subject: QuickBasic editor question
Message-ID: <1992Nov20.072552.44968@kuhub.cc.ukans.edu>
Date: 20 Nov 92 07:25:51 CST
Organization: University of Kansas Academic Computing Services
Lines: 31