home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lang / basic / 878 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.9 KB

  1. Path: sparky!uunet!caen!kuhub.cc.ukans.edu!arritt
  2. From: arritt@kuhub.cc.ukans.edu
  3. Newsgroups: alt.lang.basic
  4. Subject: QuickBasic editor question
  5. Message-ID: <1992Nov20.072552.44968@kuhub.cc.ukans.edu>
  6. Date: 20 Nov 92 07:25:51 CST
  7. Organization: University of Kansas Academic Computing Services
  8. Lines: 31
  9.  
  10. Is there any way to temporarily disable features of the QuickBasic 4.5
  11. editor?  There are a number of minor annoyances but the biggest problem
  12. I have is related to making subroutines.  
  13.  
  14. Often when writing a program I'll decide "hmm, that block of code
  15. would be better as a subroutine".  But when I try to put a SUB 
  16. statement before an already-existing section of code,
  17. the editor takes me out of the original routine and creates a new,
  18. empty subroutine.
  19.  
  20. (IMPORTANT:  Notice I'm **NOT** talking about developing a really new
  21.              subroutine from scratch, but extracting already-present
  22.              code to make a SUB .  Typically this would be starting from old 
  23.              "spaghetti" code and converting it to a more structured form.)
  24.  
  25. I can avoid this by saving the program as ASCII, getting out of QB,
  26. using a text editor to insert the "SUB ... END SUB" statements around the
  27. appropriate lines of code, moving the new SUB to the bottom of the
  28. file, then getting back into QB.  But something tells me there's got to
  29. be an easier way ....
  30.  
  31. Thanks for any help.  Apologies if this is a dumb/RTFM question but
  32. I haven't been able to find anything in the docs.
  33. ________________________________________________________________________
  34. Raymond W. Arritt                     |  Dept. of Physics and Astronomy  
  35. Assistant Professor                   |  University of Kansas 
  36. arritt@kuhub.cc.ukans.edu             |  Lawrence, KS  66045  
  37. Apr  1 12:29:21 timed[92]: THIS MACHINE IS A SLAVE
  38. Apr  1 12:29:27 timed[92]: THIS MACHINE IS A CANDIDATE
  39. Apr  1 12:29:31 timed[92]: This machine is master
  40.  
  41.