الخميس، ٢٩ يناير ٢٠٠٩

Built-in Constants

Many of the built-in subprograms take numeric values as arguments. Often, constants have been defined for these numeric arguments. A constant is a named numeric value. When passing a constant to a built-in do not enclose the constant value in quotation marks.

Constants can only appear on the right side of an operator in an expression.

In some cases, a built-in can take a number of possible constants as arguments. Possible constants are listed in the descriptions for each parameter.

In the following example, BLOCK_SCOPE is a constant that can be supplied for the parameter constant VALIDATION_UNIT. Other constants listed in the description are FORM, RECORD, and ITEM.


SET_FORM_PROPERTY('my_form', VALIDATION_UNIT, BLOCK_SCOPE);


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

الخلاصه هنا انه بيتكلم على وجود ثوابت معينه بتوضع
كأجابة لعوامل محدده فى بعض الـ built-in

فدعنا نشرح المثال السابق :-
فالـ SET_FORM_PROPERTY هو الـ Built-in
و ما بين القوسيين يدعى Parameters ( عوامل )
و أول عامل هو أسم الفورمه : 'my_form'
و ثانى عامل هو مستوى الفاعلية الذى يحدد مجال فاعلية الفورم .
و ثالث عامل (اللى هو احنا بنتكلم عليه فى الدرس ده ) هو العامل الذى يأتى
كأجابه للعامل الثانى ، و هو مكتوب فى المثال
BLOCK_SCOPE
و الفكره هنا هى اننا منقدرش نكتب غير عبارة واحده من العبارات التالية :-
DEFAULT_SCOPE, BLOCK_SCOPE, RECORD_SCOPE, ITEM_SCOPE
و فى حال أذا وضعت أى عبارة أخرى فسوف ينتج خطأ .... و لذلك نحن نقول على هذا بالعوامل الثابته ( Built-in Constants ) .


Share/Save/Bookmark
Newer Posts Older Posts Home Page