Thanks to Kevin Miller and Sjoerd for giving the examples
as requested on my last post.

A few more questions:

I have a stack where will be possible for the user to add
more cards. All the cards will have the same name for a 
specific
category.

ex.: Karate cards 1, Karate cards 2, Karate cards 3 ....
     JiuJitsu cards 1, JiuJitsu cards 2, JiuJitsu cards 
3...

 and so on

>From within that category will be possible to add a new 
card
Before adding a new card I need to find the last in that 
category
to put the new after. (I am not sure this is clear. I 
have a very poor
english)

I have wrote the scripts below. Both work, but if I have 
1000 cards
on some category it will take about 5 or 6 seconds to 
reach the last.

Any other approach that could make the task faster will 
be
appreciated ( and please : I am using the Starter Kit)

Thank you        

Script 1

on mouseUp
  put the short name of this card into tCard
  lock screen
  repeat
    get the short name of next card
    if it is tCard then go to next card
    else
      exit repeat
    end if
  end repeat
  unlock screen
end mouseUp

Script 2

on mouseUp
  put the short name of this card into tCard
  put the short name of previous card into tPrevious
  if tPrevious = tCard then
    lock screen
    repeat
      go to previous card
      put the short name of previous card into tPrevious
      if tPrevious <> tCard then
        exit repeat
      end if
    end repeat
  end if
  unlock screen
end mouseUp

 
__________________________________________________________________________
Todo brasileiro tem direito a um e-mail gr�tis
http://www.bol.com.br
 



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to