Can I iterate over the collection of fields?

Posts   
 
    
hchattaway
User
Posts: 38
Joined: 06-Apr-2006
# Posted on: 15-May-2006 16:35:08   

Hello!

Is it possible to iterate over the fields in a LLBLGen generated class? I am looking to iterate over the collection of field names, not the underlying data that is in each field.

i.e

foreach (crntfield in fieldcollection)

{

}

etc....

Thanks Harold

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 15-May-2006 16:51:49   

Yes, foreach over entity.Fields

Frans Bouma | Lead developer LLBLGen Pro