2 Replies Latest reply on Jun 21, 2007 5:35 AM by Newsgroup_User

    some problem in list

    farhanakhan
      a=[a,,d,c,2]

      b1=[1,h,3,4]

      b2=[2,h4,5]

      b3=[5,6,7,8]


      i have differnt lists...so i m doing matching the content of the list from other list
      if match (a) is found in the list A then i have the position then try to find number into other list ---b1,b2,b3--- on the base of the position which i got from the previous list A but ....
      list b1,b2,b3 is selct on the base of the random number

      check out the code ..i also indicate the error position

      error--------------------
      object expected
      put "b" & rnd[posi]
      --------------------------------

      plz reply me i have to done my code today ......
      i will be very thankful to all of the member of the fourm.

      rnd=random(3)
      SID="farhana"

      repeat with i=1 to SID.length
      SID_Array = chars(string(SID),i,i)
      end repeat
      repeat with i=1 to SID_Array.count
      repeat with x=1 to a.count
      if SID_Array
      =a[x] then
      posi=x
      put "b" & rnd[posi]------------some error is coming in this code
      end if
      end repeat
      end repeat