In the preceding example, the UBound function is called only when the For statement is first executed. If the statement block had subsequently changed the length of the array A, the For loop would still use the original length as the end value, because it does not call UBound again.
ما فهمته من هذه الجزئية المتعلقة بالتمرين المشروح
أن قيمة قيمة البداية سوف تستدعى مرة واحدة فقط عند بداية التنفيذ.
وإذا تغيرت داخل الإجراء الفرعى ستقوم الحلقة التكرارية بالإبقاء على طول ( القيمة ) الأصلية كقيمة لنهاية الحلقة . لأنها لن تستدعى مرة أخرى
|