View Single Post
  #3 (permalink)  
Old April 22nd, 2009, 02:58 AM
Tandy1000SL GW-BASIC Tandy1000SL GW-BASIC is offline
Authorized User
 
Join Date: Apr 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Post

It looks to me like you listed your Subroutine Procedure before your Main Program Procedure.

?Am I correct in this assessment?

Your Subroutine Procedures should be listed after your Main Program Procedures.

Because I have written lots of different Computer Programs, I have developed a Basic Layout Programs "BASIC-0#.BAS" for GW-BASIC and "Setup-0#.vbs" for VBScript.

My "BASIC-0#.BAS" and "Setup-0#.vbs" Programs also include Generic Routines that I want to use in all of my Computer Programs; thus, when I create a new Computer Programming Project, I Open up one of my "Setup.vbs" Programs, make changes to the Program Information, then start on my new Programming Project placing my New Code under the appropriate Section Headings.

I am new to Windows Programming; thus, my Basic Program Layout isn't really suitable for the Mini-Programming that VBScript is aimed at.

Although significantly different from my "BASIC-0#.BAS" Layout, my "Setup-0#.vbs" Layout looks like the following:

Code:
 
' V I S U A L   B A S I C   P R O G R A M M I N G   N O T E S
 
' A U T H O R ' S   N O T E S   &   E D I T I N G   N O T E S
 
' D E C L A R E D   V A R I A B L E S   &   C O N S T A N T S
 
' F I L E N A M E . V B S   M A I N   P R O G R A M
 
' F I L E N A M E . V B S   P R O C E D U R E S
 
' S E T U P . V B S   P R O C E D U R E S

Last edited by Tandy1000SL GW-BASIC; April 22nd, 2009 at 03:05 AM..
Reply With Quote