Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undefined param name
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00904522
Message ID:
00904524
Views:
26
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)	&& Var array used as header in rpt
>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)	&& Array of coeff. headers for rpt
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform