help required regarding saving values in a sequence during a loop

"Asad Niazi" <[email protected]> Wed, 16 Jun 2004 14:52:36 +0500
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND