>I have the following code in a method which is
>called throughtout a form to loop through an
>array and write the array element out to a low
>level file. The actual FPUTS is in the WriteFile
>method:
>
>LPARAMETERS aHeaderInfo
>
> FOR nHeader = 1 TO ALEN(aHeaderInfo)
> ThisForm.Writeline(aHeaderInfo[nHeader])
> ENDFOR
>
>RETURN
>
>
>When I build an EXE, I get the error:
>
> 'Unknown AHEADERINFO - Undefined.'
>
>The word 'aHeaderInfo' appears only in this method.
>
>So what gives?
>
>Thanks in advance
It seems to be non-critical compilation error: VFP compiler expects to see arrays declared. You may use a trick: add two lines to the end of this method code:
RETURN
DIMENSION AheaderInfo(1)
Edward Pikman
Independent Consultant