Solitaire (Login Solitaire1) S Posted Aug 10, 2012 9:56 AM
and save each major change by a different version number, making sure it works correctly. That way, if the next change doesn't work out, you can go back to the previous version and start again.
Clean up the main program first, and see that each call to a subprocedure is clearly marked. Use a DO loop with a menu in the main program and SELECT CASE to call each of the subs. Declare each of the variables by type at the top of the main program.
Then do the subprocedures one by one, making sure arguments and parameters match when variables are passed down from the main program. Declare all local variables by type in the sub.