CHE110-L09 - Chemical Engineering Sub Procedure Arguments...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Department of Chemical Engineering Sub Procedures CHE110 Introduction to Programming & Problem Solving
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Department of Chemical Engineering Sub Procedure Syntax Naming Sub Procedures follows variable naming rules Declaring Sub Procedures Sub ProcedureName (arguments) [lines of code] End Sub Scope of a Sub Procedure All Sub procedures are Public by default - can be called by any procedure in any module Use Private keyword to restrict to module-wide scope Private Sub ProcedureName (arguments) [lines of code] End Sub
Image of page 2