I am creating some reports that require some extra logic including determining the number of days between a date in a row and today. In order to debug my logic, I want to use nuDebug. I have gone through every reference to nuDebug in the forum, wiki and the video tutorials and I am still confused on how to use nuDebug. Can you give some examples of how I would display values? Normally I would use 'echo' but than is not an option.
For example, once I select some records and load them into #dataTable#, I want to calculate the number of days between the date defined in the row and today. I think the command to calculate age would be the following:
What I want to know is how do I set up a loop to process all of the rows in #dataTable# and secondly, how do I display the value of $age (above) for each row using nuDebug.$age = DATEDIFF(NOW(), 'date_entered')
I do understand that the output of nuDebug is in the zzsys_trap table.
I appreciate your help.
John