Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HELP! What is causing the error???
Message
De
30/10/2001 15:41:46
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
HELP! What is causing the error???
Divers
Thread ID:
00575294
Message ID:
00575294
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform