I have a form with a grid that calls a second form. When running the exe from the desktop, I get an error when trying to open up the second form. From within VFP7, all is well. The error message is "File 'HDR1' does not exist."
I'm not getting a line #. I put a WAIT WINDOW at the end of the BeforeOpenTables method and one at the beginning of the Form.Load. I see the message from the BOT method but not the Load, so I assume the error is occurring somewhere in between. The problem is, according to my coverage log, there is nothing in between! What can cause a form to give an error while loading other than code or data? The only reference to HDR1 in my project is with my grid headers. In my grid class, I replace the headers with my own header class. The code looks like this:
FOR EACH loColumn IN This.Columns
WITH loColumn
lcCaption=loColumn.Header1.Caption
lnAlign=loColumn.Header1.Alignment
.AddObject("Hdr1",This.cHeaderClass,lcCaption,lnAlign)
.Hdr1.Name="Header1"
ENDWITH
ENDFOR
I suspect that this error message may be misleading, but what could be causing this error and how can I fix it?
Thanks,
Elyse
Elyse Pomerantz