Array

yves COPPE yvescoppe at skynet.be
Sun May 5 11:39:01 EDT 2002


>Yves,
>
>Assuming you have two keys per "index" (one is "student" and one is 
>"prof"), you would divide 'numKeys' by 2, and then add 1 for the 
>next index number:
>
>   put (numKeys/2)+1 into nextIndexNum
>
>Then, set your array to the next element:
>
>   set the cName[student,nextIndexNum] of <object> to "Peter"
>


This assumes the number of entries in student and prof are equal
If I have 4 entries for student and 1 for prof and I don't know how 
much entries because this is variable ?
How to proceed ?
-- 



More information about the use-livecode mailing list