Kamis, 03 Mei 2012

RE: [MS_AccessPros] catalogue the properties and their values for a custom class instance

 

Glenn-

Can you post the code for the Class module and the code you're using to invoke
it?

John Viescas, author
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Microsoft Access Applications
Microsoft Office Access 2003 Inside Out
SQL Queries for Mere Mortals
http://www.viescas.com/
(Paris, France)

----------------------------------

From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Glenn Lloyd
Sent: Thursday, May 03, 2012 12:31 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] catalogue the properties and their values for a custom
class instance

 
Here's what I want to do: catalogue the properties and their values in an
instance of a class.

Here's why:

I am using a custom class to perform a complex set of calculations. In one
instance I perform the calculations across all records in the relevant
table. In the other instance I am performing the same calculations across a
subset of records from the same table. Because of the nature of the
calculation, a number of properties must be assigned starting values.

My problem at the moment is that the first instance appears to be performing
the calculation correctly. However the second instance is producing a result
that is orders of magnitude out of the expected range of possible results.
The results should be percentages; the calculated result is > 900.

I've tried manually going through the code and looking at values in the
debugger to try to identify where the second instance's calculation is going
wrong with no luck. So what I would like to do is use a procedure to step
through all properties using the for each structure to list the property
name and current value for each property in the instance.

My thinking is that if I can compare the two lists side by side I should be
identify what I have failed to initialize in the second instance.

Glenn

I'm desparate so I am posting this to several resources so you may see this
same message several times.

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar