Re: Find restricted to the current card?

2011-05-01 Thread Jim Ault
if you lock screen put the sort id of this card into baseCd push card -- find if the short id of this card is baseCd then exit to top else answer 'the hit is not on the card you started on' pop card end if --the unlock screen will happen at the exit of the handler automatically --- and this

Re: Find restricted to the current card?

2011-05-01 Thread Peter Brigham MD
On May 1, 2011, at 11:50 AM, James Hurley wrote: > I have a field with the script: > > on mouseUP > put the value of the clickline into tText > set itemdel to tab > put item 1 of tText into tText > find string tText in field "thetext" > end mouseUP > > > When I click on a line in the f

RE: Find restricted to the current card?

2011-05-01 Thread John Dixon
Hi Jim... Just had a quick test... two cards each with a field... on mouseUp find "jim" in field id 1004 end mouseUp Without using the id, it finds 'Jim' in both fields as you are seeing. Using the id of the field it only looks in the one field. be well

RE: Find restricted to the current card?

2011-05-01 Thread John Dixon
Hi Jim... Does it help if you set 'lockMessages to true in the 'mouseUp' handler ? be well > I have a field with the script: > > on mouseUP >put the value of the clickline into tText >set itemdel to tab >put item 1 of tText into tText >find string tText in field "thetext" > en

Find restricted to the current card?

2011-05-01 Thread James Hurley
I have a field with the script: on mouseUP put the value of the clickline into tText set itemdel to tab put item 1 of tText into tText find string tText in field "thetext" end mouseUP When I click on a line in the field RR finds the string in the field "theText" and a second click