Array problem

Yves Coppé yvescoppe at skynet.be
Sun Jul 7 10:06:01 EDT 2002


>Yves,
>
>As long as cPoints only has student data (i.e. every element in cPoints is
>what you'll be checking), you can do this:
>
>put "" into myList
>put 1 into elementNum
>repeat for each element e in cPoints
>   if e >= 5 then
>     put line elementNum of keys(cPoints) & cr after myList
>   end if
>   add 1 to elementNum
>end repeat
>
>Hope this helps,


I find something :

if I begin the code with

put the short name of this stack into MYstackName
put the customProperties["cPoints"] of stack MYstackName into myTxt
put "" into myList
put 1 into elementNum
repeat for each element e in myTxt
...
...
...

then I get the list...BUT
it is ONLY the list of the students who have „ 5 but not the points they have

I'd like something like

sudentname,points

Then I add the line

put comma&the cPoints[line elementNum of keys(myTxt)] after myList

Is it correct to do so ?

thanks.
-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the use-livecode mailing list