Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing headers in VFP7
Message
 
 
À
30/10/2001 10:20:49
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:
00575083
Vues:
37
Hi!

You can figure out the code line in EXE by using error handler. Compile your exe with including the debug information. Then use certain functions in the error handler (see ON ERROR command in the help) to get the code line number, code line and other information to see what code line cause error. This way you will know it.

Though the behavior is weird, indeed. Maybe something is corrupted? Did you tried to use "recompile all" option in your project? Do you use any external modules (not compiler into EXE) that were compiled with VFP6 but run in VFP7 EXE?

>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.
>
>>Hi!
>>
>>Can you send the exact code line that shows such error? Just debug application step by step and see what is the command.
>>
>>Do a global search in the project for "HDR1" word and see where it is used.
>>
>>
>>>I recompiled my application in VFP7 and now I'm running into problems. It works fine from the command window, but I'm getting errors in my exe. When I RightClick on a grid and select Edit from the menu, it is supposed to bring up another form but instead I get an error saying "File 'HDR1' does not exist." The only time I use 'HDR1' is when I instantiate my header class, in the init of my grids. For each column, the code looks something like this:
>>> loCol.AddObject("Hdr1",This.cHeaderClass,lcCaption,lnAlign)
>>> loCol.Hdr1.Name="Header1"
>>>I don't understand why RightClicking on a textbox in the grid should have anything to do with this, but I can't find any other source. Any help would be greatly appreciated.
>>>
>>>Thanks,
>>>Elyse
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform