iterating variable inside a for loop?

Posts   
 
    
mvording
User
Posts: 19
Joined: 04-Oct-2008
# Posted on: 31-Dec-2009 18:49:00   

Hello:

I have a template I would like to put a numeric value that increments inside a for loop.

How do I accomplish this? I'd like to have properties defined with attributes like:

[DataMember(Order=1)]

[DataMember(Order=2)]

[DataMember(Order=3)]

....

How do I have a variable that increments inside this loop ( something to replace the [%i] I placed below?

<[Foreach EntityField CrLf]> /// <summary> The <[EntityFieldName]> property of the Entity <[CurrentEntityName]></summary> [DataMember(Order= [%i] )] ..... <[EntityFieldName]>

=========================

Found the answer, using the SDK documentation: <[ForeachIndex]>