Find restricted to the given card

James Hurley jhurley0305 at sbcglobal.net
Sun May 1 18:44:47 EDT 2011


Craig,

Not my situation but a good point. 

I'm surprised that RR didn't allow for greater level of specification in where to look, as in

 Find tWord in field  [or "veld"] "myField" of this card

Jim



> I assumed that you were talking about grouped "backGround" fields that also would have had the same id. In your case, I see, those other fields may have the same name, but will certainly have different id's, so the native find restriction option works.
> 
> 
> I don't think there is a native way to do this with bg fields commonly used to hold data across multiple cards. You have to let LC do the work:
> 
> 
> on mouseUp
>   lock screen
>   put the id of this cd into currentCardID
>   find yourString in veld nameOfYourField  --can be a name now
>   if the id of this cd <> currentCardID then go cd id currentCardID
> end mouseUp
> 
> 
> Ugly, but works, and simple. You will have to do this if you use "backGround" fields.
> 
> 
> Craig Newman
> 
> 




More information about the use-livecode mailing list