Yves,

I was assuming that you were having an equal number based on the example you
submitted.

If there are going to be unequal divisions, I would recommend storing your
index value in another custom property (like 'cName[index]') and then
increment that with each "record". So instead of this:

  put the number of lines of keys(cName) into numKeys
  put (numKeys/2)+1 into nextIndexNum
  set the cName[student,nextIndexNum] of <object> to "Peter"

You'd do this:

  put the cName[index] of <object> +1 into nextIndexNum
  set the sName[student,nextIndexNum] of <object> to "Peter"
  set the cName[index] of <object> to nextIndexNum

Just my $0.02,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


----- Original Message -----
From: "yves COPPE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 05, 2002 11:34 AM
Subject: Re: Array


> >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 ?
> --
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to