Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing headers in VFP7
Message
De
30/10/2001 17:23:52
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
30/10/2001 17:08:18
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00574795
Message ID:
00575361
Vues:
25
>>>I searched the project and this is what I came up with as the only place I use "HDR1". I can't pinpoint the code that causes the error. The error only occurs when the program is run from the exe, where I can't debug. If I run it from the command window within VFP it is fine. That's what's making me crazy! And this was working beautifully in VFP6.
>>
>>You can debug the .exe if you
do your.exe
from the command window. Could it be your grid is looking for its recordsource and getting instantiated as soon as it sees it? You may put a breakpoint in your code on one of those lines where hdr1 is mentioned and try to run the exe with that. One more thing - if this is happening as I imagine it is, your header class .prg file is still not set procedure to - you may use newobject() instead of addobject() and see if that fixes it.
>
>I just tried using newobject() but I have the same problem.

Weird, and sounds like a real bug. Couple of things I'd check - see if file("myheaderclass.prg") returns .t. from within the grid setup code, and what is the set("procedure") returning at that point. Somehow this seems that the grid setup is firing far earlier than we may think.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform