TArrayBrowse ... how easy to do this?
Publicado: Mar Oct 25, 2011 7:47 pm
I am wanting to browse an array where each element is itself either an array
or an object.
The ArrayBrowse just needs to show say element #2 of each array or say
obj:cName.
I dont think this is going to work .... but I would like it to.
Maybe I could inherit from TArrayBrowse & modify the GetData ..... is this
realistic?
My solution at the moment is to have two arrays ....
Array 1 has an array at each row/column cell .... this is where I keep all
my info for each cell.
Array 2 is an array and has has a string value for each row/column and is
the one that I show in the ArrayBrowse.
The problem is I have to keep the string values in Array 2 up to date from
Array 1.
But as I am typing .... Array 2 could just be with "" empty rows & columns
but use the Array2:Getvalue event to look into Array 1 for the values to
display in Array2.
Both arrays have to be the same size of rows and columns but I think this
may work.
Any thoughts?
Chris
..
..
or an object.
The ArrayBrowse just needs to show say element #2 of each array or say
obj:cName.
I dont think this is going to work .... but I would like it to.
Maybe I could inherit from TArrayBrowse & modify the GetData ..... is this
realistic?
My solution at the moment is to have two arrays ....
Array 1 has an array at each row/column cell .... this is where I keep all
my info for each cell.
Array 2 is an array and has has a string value for each row/column and is
the one that I show in the ArrayBrowse.
The problem is I have to keep the string values in Array 2 up to date from
Array 1.
But as I am typing .... Array 2 could just be with "" empty rows & columns
but use the Array2:Getvalue event to look into Array 1 for the values to
display in Array2.
Both arrays have to be the same size of rows and columns but I think this
may work.
Any thoughts?
Chris
..
..