Hi Terry,
The project manager doesn't understand that form's parameter is an array. Add EXTERNAL ARRAY statement to the Init
LPARAMETER taMobDesc
EXTERNAL ARRAY taMobDesc
>Curious one this.
>
>I have 2 forms that have dynamically assigned column headers in the grid. I need to print out the contents of the table and want the dynamic headers in my report. Before printing, the user must go through a "print - preview - cancel" dialog.
>
>So I have an array of the dynamic col headings which I pass to the dialog, thus:
>
>
>LOCAL I, laMobDesc( 5)
>
>Declare laMobDesc( 5)
>For I = 1 To 5
> laMobDesc( I) = thisform.aMobDesc( I)
>Endfor
>Do Form accPrintMCsDlog With laMobDesc
>
>
>The INIT() of the dialog has the following code:
>
>
>LPARAMETER taMobDesc(5)
>LOCAL I
>
>DODEFAULT()
>For I = 1 To 5
> Thisform.aMobDesc( I) = taMobDesc( I)
>Endfor
>
>
>Each el. of taMobDesc() is copied to a variable, each of which is used in the report heading. Now, I thought I'd done everything "by the book" but when I rebuild the project I get the error:
>
>"Form c:\mcl_windows\serforms\serprintsercatdlog.scx has the following errors:
> Unknown TAMOBDESC - Undefined"
>
>I get this for both forms with these features. This error is not fatal, and the report works OK but, being a perfectionist, I don't want any project errors, not on my watch.
>
>Anyone any ideas what VFP's problem is?
>
--sb--