I like to visit all marked cards:
Please tell me, what's the correct first line.repeat for each marked card i of this stack
-- do something
end repeat
Thanks, have a good weekend.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Please tell me, what's the correct first line.repeat for each marked card i of this stack
-- do something
end repeat
Code: Select all
repeat with x = 1 to the number of cards
  if the marked of cd x then
    -- do something
  end if
end repeatCode: Select all
on mouseUp
   push card
   
   put the number of marked cards into cardCount
   repeat with count = 1 to cardCount
      go next marked card of this stack
      beep
      wait 1 second
   end repeat
   
   pop card
end mouseUp


yep, but I wish this would also work with cards and objects!Mark wrote:Repeat for each is not for objects but for strings and arrays.
 
 