BBS: Inland Empire Archive Date: 04-10-92 (09:51) Number: 115 From: MATT HART Refer#: NONE To: RICHARD VANNOY Recvd: NO Subj: Help with SUBS Conf: (2) Quik_Bas
RV> Here is the sequence I use as food for thought/discussion: RV> Declare CONSTANTs RV> Declare FUNCTIONs RV> Declare SUBs RV> 'REMs Program description and comments. RV> DEFINT, DEFSNG. etc. if used. RV> TYPE statements for files. RV> DIM statements for files. RV> OPEN files. RV> COMMONs RV> SHAREDs RV> DIMS RV> Declare variables. RV> start code. Here's mine: Global TYPE's COMMON SHARED's DECLARE FUNCTION's DECLARE SUB's CONST's Local TYPE's Block COMMON SHARED's DECLARE FUNCTION's DECLARE SUB's CONST's Code ON ERROR GOTO ErrorTrap Global and Local Shared DIM's GOSUB Init GOSUB Main GOSUB Finish CHAIN PreviousProgram$ You can't put DIM's in front of COMMON SHARED's. --- * Origin: Midnight Micro! V.32/REL (918)451-3306 (1:170/600)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET