Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing headers in VFP7
Message
From
30/10/2001 16:20:20
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
30/10/2001 15:59:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00574795
Message ID:
00575324
Views:
23
>>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.

The problem is that when I run my.exe from the command window I don't get an error. I've determined that the error occurs between the BeforeOpenTables method of the DE and the Load of the form, and there is no code in between! In my application I do a SET PROC TO myheader.prg.
Elyse Pomerantz
Previous
Reply
Map
View

Click here to load this message in the networking platform