Jimekus
9/3/2011 3:36:00 AM
On Sep 3, 10:03 am, avi <avi...@bezeqint.net.il> wrote:
> Hello,
>
> I have a MainArray of n X m and a SecondaryArray of r X s . Both are 2
> dimensional
>
> I want to merge both arrays into a third one of n rows and (m+s-1)
> columns based on a key located both in a column of MainArray and a
> column of SecondaryArray . The resulting array is formed by MainArray
> and right to it by all the other columns of SecondaryArray that match
> according to the columns keys
>
> To be clearer, I want to reproduce exactly the Vlookup Excel function
>
> Many thanks
> Avi
The way I handle such problems is to ensure that my original data
comes tabbed delimited from a RichTextBox. This way I can move it in
and out of a FlexGrid.Table using the .Clip function. Once the data is
in a table it is easy to change the number of columns, and then pre-
calculate data to fill numeric arrays.
One inherent MSFlexGrid problem that I can't seem to fix, though, is
when I have to export the clip back to the textbox for saving. This
works fine for most sizes but when the table reaches into the
megabytes, any reference to this .clip property freezes my program.
I'm specifically referring to a table extracted from the Internet
Movie Database covering 2000 titles.
I would really like to do what you are doing in order to merge my
collection with the Dramatica Story-Engine database. Assigning data to
the .Clip property is very fast even for extremely large tables. Just
be sure that after a certain size you stay away from reading .clip as
I think it is built by concatenation each time.
A cure is sorely needed.