عرض مشاركة واحدة
  #9  
قديم 08-03-2013, 09:42 PM
الصورة الرمزية hassanalhawy
hassanalhawy hassanalhawy غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Sep 2010
المشاركات: 1,514
معدل تقييم المستوى: 16
hassanalhawy is on a distinguished road
افتراضي

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.
ما فهمته من هذه الجزئية المتعلقة بالتمرين المشروح
أن قيمة قيمة البداية سوف تستدعى مرة واحدة فقط عند بداية التنفيذ.
وإذا تغيرت داخل الإجراء الفرعى ستقوم الحلقة التكرارية بالإبقاء على طول ( القيمة ) الأصلية كقيمة لنهاية الحلقة . لأنها لن تستدعى مرة أخرى