Sub Procedure and Function Procedure Most computer programs that solve real-world problems are much larger than those presented in the first few chapters. Experience has shown that the best way to develop and maintain a large program is to construct it from smaller pieces each of which is more manageable than the original program. This technique is called divide and conquer. This chapter describes many key features that facilitate the design, implementation, operation and maintenance of large programs. Functions and Subroutines are programs designed for specific task, and could be called from the main program or from sub-procedures without pre definition or declaration. Users are allowed to call in any number of times which save the main program space, since it avoids reputation of code these subroutines could be designed by user or could be previously built. The concepts and descriptions are summarized in the following table. Sub Procedures Sub procedure are created with the add procedure dialog (displayed when add procedure is selected from the tools menu). The add procedure menu item is grayed unless the code window is visible. Figure (9-1) displays the add procedure dialog. The procedure name is entered in TextBox Name and can be any valid identifier Frame Type contains option buttons for selecting the procedure type (Sub or Function). Frame scope contains option buttons for selecting keyword public or keyword private that will procedure, we will use keyword private, which also preceded our event procedures.
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
|