Trouble with Commas (NewBee)

Posts   
 
    
cbueno
User
Posts: 12
Joined: 05-Oct-2006
# Posted on: 05-Oct-2006 22:53:43   

Hello,

I´m trying to generate the below structure using TDL notation.

public User(System.Int32 UserId,  System.String Name,  System.String NickName)
{
    this.userId = UserId;
    this.name = Name;
    this.nickName = NickName;
} 

Using TDL notation:

public <[ CurrentEntityName ]>( <[ Foreach EntityField ]> <[ TypeOfField ]> <[ EntityFieldName  Comma ]> <[ NextForeach ]> )
{
    <[ Foreach EntityField ]>
    this.<[CaseCamel EntityFieldName]> = <[EntityFieldName]>;
    <[ NextForeach ]>
}

The Result:

public User( System.Int32 UserId,  System.String Name,  System.String NickName, )
{

    this.userId = UserId;

    this.name = Name;

    this.nickName = NickName;

} 

My problema is with the last comma on the method parameters. How I can omit the last comma?

Sorry my poor english, it isn´t my first language.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 05-Oct-2006 23:17:09   

Add 'Comma' to the Foreach: <[ Foreach EntityField Comma]> <[ TypeOfField ]> <[ EntityFieldName]> <[ NextForeach ]>

Frans Bouma | Lead developer LLBLGen Pro
cbueno
User
Posts: 12
Joined: 05-Oct-2006
# Posted on: 09-Oct-2006 17:02:26   

Otis wrote:

Add 'Comma' to the Foreach: <[ Foreach EntityField Comma]> <[ TypeOfField ]> <[ EntityFieldName]> <[ NextForeach ]>

Tanks!