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

Constants & Variables in the QB

Share |
الكلية كلية هندسة المواد     القسم قسم هندسة السيراميك ومواد البناء     المرحلة 1
أستاذ المادة رلا سامي خضير عباس العيسى       19/12/2016 22:18:03
Constants & Variables in the QB
Variables: it can be define as character or name known in computer, it can be used to store the value as data or information during or through done the mathematical operation or logical operation in the program.
There are two types of variables that can be used to store values:
1. Numerical variables
This type of variables which are stored numerical value which is in numbers and numbers which are either whole numbers (Integer) or the fact (Real) and forms that are explained later.
2. Character variables
This type is used to store the character value whether these variables numbers or letters or symbols.

In general it can be defined as a character or variable numerical giving a name to the following conditions:
- Not exceed the number of characters variable name for (40) character.
- The variable name begins with a letter from the (A-Z).
- Cannot use reserved words in sentences or functions QB
Print, Read, LOC ...
- That does not contain space , breaks or special characters such as
(^, [~:
- Unimpaired condition character (large or small).
- If the variable name ends with ($), the variable will be a character.








Examples :
M character variable because it began with character
R $ character variable because it began with character and end with $
2X Not variable because it began with number
Z% numbering variable because it began with character and end with %

Constants
There are two constants
1. character constants
Possible that this kind of constants includes a 32767 character or symbol except for the quotation mark and code retrieval code and line feed
Ahmed, SA, 256
The number used, such as (256) above has no value, but it s figure .
2. numerical constants
There are kinds of numerical constants could be used in the QB may be added to it some symbols to indicate the quality.
226, 3001% , -1782 , &043, & 0726 , & 4267

Numerical correct decimal numerical correct octal

& H8d , &h45A, 213425490 &

Correct hexadecimal Correct Long


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