Why is ResultsetFields of fixed size?

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 24-Aug-2006 10:23:05   

I mean why is it necessary to specify the size in advance and then add fields using this[]? Wouldn't be more natural having some sort of collection without the need of specifying the size in advance? Like: ResultsetFields fields = new ResultsetFields(); fields.Add(..) fields.DefineField(...) ...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 24-Aug-2006 11:09:02   

As it's an array internally. simple_smile

You can expand it, by calling Expand(n), if you need more fields. (and contract it, if you want to clean up slots). It's build on top of the EntityFields(2) object, which contains internally an array.

Frans Bouma | Lead developer LLBLGen Pro