Inserting Newlines in Export

Boaz Bezborodko boaz at mirrotek.com
Fri Jul 8 06:47:25 PDT 2011



On 7/7/2011 5:32 PM, Kenneth Brody wrote:
> 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?
>

It goes back to Loop3 which does a check on arr03(cu).  Since 'cu' is 7 
it errors out.

Stanly, there's your error.  Change the current label for Loop3 to 
something else for the jump and put the Loop3 label on the start of that 
same line to solve your problem.




More information about the Filepro-list mailing list