I have also tried constructing variable names on the fly wothout success.
The VTL spec doesn't seem to cover it.

the ${formid}${velocityCount}constructs don't seem to help...

N

----- Original Message -----
From: "Keshava Murthy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 7:53 AM
Subject: setting varaibles in a loop



Hi
 I am trying to declare variables and assign values to it in a loop ?
when i tried to assign values as given below
#foreach($i in $Privileges)
    #set($formid$velocityCount = $i.getValue(2).asString())
#end

the error - Encountered "$velocityCount" appears in turbine log.
could someone suggest me how to  achive this?


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to