Information générale
Catégorie:
Codage, syntaxe et commandes
![Click here to see this attachment](Images/AttachmentZIP.gif)
>>>...where do I find this OnEntry procedure in the Report?
>>
>>Right-click on the report somewhere off a band and choose "Data Environment..."
>>Right-click in the Data Environment area and choose "Code..."
>>
>>Like on a form or class, methods will be highlighted in bold if you have any code on the report.
>
>Thank you, Rick. I don't see any method in the Data Environment of this name, OnEntry.
Where your code is you can track it down using the APROCINFO(). It will show you what's running on the call stack.
I'm attaching a program I use called debug_logme(), which is a self-contained encapsulating function which can be dropped on the valid rules of a field or table to let you know where something's being updated, or dropped anywhere in code such as an _assign() method, to find out where something's being set. It's a good debugging tool.
You could use it to find out what's calling your code (if it identifies itself, it doesn't always identify everything in system events, like SQL queries, etc.).
After you run it, USE debug_logme.dbf and then BROWSE LAST. If you open up the memo fields, you'll see the call stack and code.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement