VBCorLib for VB6

Tuesday, June 07, 2005

cArray 2.0 Upgrads Part 2

Ok, all of the Find* methods have been implemented. They even support UserDefined Types. It was an adventure learning about the IRecordInfo object and creating arrays for a UserDefined type without knowing about them before hand. The FindAll method returns an array of the same type as passed in, but only contains the elements that were matched successfully. This is where learning to create a dynamic UserDefinedType array had to be learned, as I would have no idea about your UserDefined types, yet I had to create a new array of them. The Find and FindLast methods return the first instance of a matched element in the array. If no elements matched, then the default value for that array datatype was returned. Well, if you passed in an array of UDTs, I had to return a default single UDT of your's. That is where my IRecordInfo adventure began.

Babble babble...

0 Comments:

Post a Comment

<< Home