A problem with clearing fields on marked cards

charles61 cszasz at mac.com
Mon Jun 7 10:22:33 EDT 2010


Scott,

Thanks very much for your suggestion! Your script works!

Charles Szasz
cszasz at mac.com




On Jun 6, 2010, at 11:25 PM, Scott Morrow [via Runtime Revolution] wrote:

>  I think you just need to specify the card that the target field is on: 
> 
>  if the short name of field u of marked card y CONTAINS "field" then put empty into field u of marked card y 
> 
> Scott Morrow 
> 
> Elementary Software 
> (Now with 20% less chalk dust!) 
> web       http://elementarysoftware.com/
> email     [hidden email] 
> office     1-800-360-734-4701 
> ------------------------------------------------------ 
> 
> 
> 
> 
> 
> On Jun 6, 2010, at 7:55 PM, charles61 wrote: 
> 
> > 
> > I have the following script to clear fields on marked cards: 
> > 
> > on mouseUp 
> >   repeat with y = 1 to the number of marked cards 
> >      repeat with u = 1 to the number of fields of marked card y 
> >         if the short name of field u CONTAINS "field" then put empty into 
> > field u 
> >      end repeat 
> >   end repeat 
> > end mouseUp 
> > 
> > The script clears the empty fields on the marked card that has the Clear 
> > button but it will not clear the fields on the next marked card. This sample 
> > stack consists of two cards. This is weird! I am using Rev Enterprise 4.0. 
> > Any suggestions? 
> > -- 
> > View this message in context: http://runtime-revolution.278305.n4.nabble.com/A-problem-with-clearing-fields-on-marked-cards-tp2245427p2245427.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > _______________________________________________ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ http://runtime-revolution.278305.n4.nabble.com/A-problem-with-clearing-fields-on-marked-cards-tp2245427p2245442.html 
> To unsubscribe from A problem with clearing fields on marked cards, click here.
> 


-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/A-problem-with-clearing-fields-on-marked-cards-tp2245427p2246008.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list