انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Lecture-8: Input Tools and Methods

Share |
الكلية كلية هندسة المواد     القسم قسم البوليمرات والصناعات البتروكيمياوية     المرحلة 2
أستاذ المادة حسين محمد سلمان الشمري       09/12/2015 19:45:02
Lecture-8: Input Tools and Methods
In each language , there are many tools and methods used to read and input the data (values of the variables) such as read and input statement, in the Visual Basic there are main two methods for the input tools:
First : by using the Text Box tool ; This tool basically used for dealing with the text data, however there is way to make it deal with the numeric data by using the val() function that convert the digits read by text box from the text format to the numeric format. This is very clear in the last lectures.
Second : The InputBox ( ) Function
An InputBox ( ) function will display a message box where the user can enter a value or a message in the form of text.
The general format of the InputBox() is:
InputBox (Prompt, [Title] , [default] , [x-position], [ y-position],[helpfile context])
The arguments are explained as follows , where each argument in the square bracket is an optional test :
• Prompt : The message displayed in the input box.
• Title : The title of the input box window.
• Default : The default value that appears in the input field where users can use it as his intended input or he may change to another message.
• X-position and y-position : the position or the coordinate of the input box.
As in the following figure


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم