[FMPP] help required regarding saving values in a sequence during a loop
Brought to you by:
ddekany
From: Asad N. <noo...@ho...> - 2004-06-16 09:52:45
|
Hello! I have a problem regarding saving values in a sequence (using the add/set fmpp pphash) during a loop (inside the <#list> ). I intended to increase the index by increasing the counter x e.g. index = x, where x is increasing in every run of the loop. The actual problem is that i dont understand the difference of "add" and "set" fmpp pphash when they are used to add values in a sequence. For your help let me outline what i am trying to do: e.g the Writable seqeunce will be NamedNumber it will have 2 subelements or "keys"; "Name" and "Number" they can store values for lot of "names" and "numbers" (which makes it a sequence) What I have currently done is that i have tried different combinations of "set" and "add" on this writable sequence. <@pp.add seq=NamedNumber index=x value={"Name": whatevervalue} /> should this work?? or should i use?? <@pp.set seq=NamedNumber index=x key="Name" value=whatevervalue /> somehow both of these are not working. As i told you before i am not very clear with the difference of set and add pphashes and the use of index parameter in them. I am desperately looking for help in this matter. I ll be looking forward to your reply. Thanking in anticipation. Best Regards Asadullah Khan Niazi _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |