Filepro-list Digest, Vol 90, Issue 6

Kenneth Brody kenbrody at spamcop.net
Thu Jul 7 14:32:17 PDT 2011


On 7/7/2011 5:04 PM, Boaz Bezborodko wrote:
>
>>> ::dim arr03(6)106 ; cu="1":
>> [...]
>>> loop3:::
>>> :arr03(cu) eq "":goto finish:
>>> :cu eq "1":f=f&    nl&    89&    "~":
>>> :cu le "6":f=f&    arr03(cu)&    "~" ; cu=cu+"1" ; goto loop3:
>> What happens when that line is executed when cu contains "6"?

Did you not notice my question here?

>> [...]
>>> Ken, would you elaborate on what the error message is saying, ie: what is
>>> the (6) and Index:7 all represents?
>> "dim arr03(6)" is just that -- you dimensioned arr03 to be 6 elements long.
>>     The "index:7" means you tried to access the array with a subscript of 7.
>>
>> [...]
>
> If the array element is only processed if 'cu' is less than or equal to
> "6", then how does it see the array element of "7"?

Time for a Gedankenexperiment:

*  What does that last line do when cu is 6?

*  What happens after that line is executed?

-- 
Kenneth Brody


More information about the Filepro-list mailing list