> In a stack I have two fields :
>
> One, « towns » is a list of towns where when a line is clisked, I put the
> name of the town in « tthisTown »
>
> The other field « statClients», is a big list each line of which includes a
> number of items separated with tab ; the first item being the town.
>
> I wish to get in a third field, say « results », only the lines concerning
> the clicked town.

How about using the filter command?

ON mouseUp
   local tThisTown, tStatClients
   lock screen
   put value(the selectedLine) into tThisTown
   put fld "statClients" into tStatClients
   filter tStatClient with "*" & tThisTown & "*"
   put tStatClient into fld "results"
END mouseUp

The *'s at the start & end of the filter string mean that your town
can occur anywhere in the line, not just at the beginning or end.

Cheers,
Sarah
_______________________________________________
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