-
I don't see any flaw with what you've done.
With late-binding, at run-time, the class object must be found and each subsequent reference compiled whereas with early-binding that work is already done.
I'm not sure what kind of performance increase you were expecting but it is reasonable to expect early-binding to be much more efficient.
I ran a couple of quick comparison tests (using your code looped a number of times) and found late-binding took around 2-3 times as long as early-binding.
However, whether this is noticable in a single instance on a fast PC is debatable.
K :-)

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules