0 Replies Latest reply on Jan 9, 2007 9:48 AM by jjjake01

    PLEASE HELP: IViewcursor.current

    jjjake01
      Good Day to all

      I need some help trying to collect a value of one array collection by referencing that value using another array collection's result.

      ex:

      ac1 = {ref1:"name",ref2:"address",ref3:"email"}
      ac2 = {name:"myname", address:"myaddress",email:"myemail"}

      iviewcursor = ac2.createCursor();

      I can get the name value of ac2 using:

      iviewcursor.current.name
      (the result = myname)

      but I need to dynamically determine which field to reference...something to the effect of:

      var i:Number=0;
      iviewcursor.current(ac1.getItemAt(i).ref1);

      But, of course, this returns an error.

      Thank you for your help

      j