Hello !
I much appreciate your answer (those from Éric and Jim too. (I got new insights about using Rev). Thanks a lot to the three of you.

Jacqueline, I like your tricky "dontsearch" solution. I tried it ; currently I have 320 cards and it works well and is very fast. I am hesitating to use it because, at the end, after resetting the dontsearch of all cds to false, I must reset the dontsearch of certain cards to true ; well, anyway, the whole thing is running very fast ! Also, the number of cards in my app. is going to grow each years, so this solution could be provisional ; well, why not ! I have to make a decison, but, thanks to this list, it is really comfortable to can choose among several solutions !

Best regards
André
Grenoble

Le Saturday, 4 Feb 2006, à 18:27 Europe/Paris, J. Landman Gay a écrit :

André.Bisseret wrote:
Hi !
I have a background field that displays different texts on the different cards of the background. I need to find all the occurrences of one word (or string) on one card only, in order to highlight each occurrence (set the backgroundColor). So, when there is no more occurrence of a word on the current card, I must prevent the find to proceed on following cards.

If your stack does not have too many cards, this works:

repeat with x = 1 to the number of cds
  set the dontsearch of cd x to true
end repeat
set the dontsearch of this cd to false
-- now use "find" to do the search here

The "dontsearch" property disallows any searches in any fields. The above script just sets all the cards so they are not searchable, then reverts the current card so that it is searchable.

This is fast enough if the stack doesn't have a lot of cards. You'll have to experiment to see if your stack is small enough to make the delay unnoticeable.

--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to