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?
TIA
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.