populating a var instead of directly a field don't working ???
Andre.Bisseret
Andre.Bisseret at inria.fr
Tue Jan 27 05:43:05 EST 2009
Sarah,
I had tried a fllter command without success, because I did know about
the "*" possibility
Thanks a lot for this very usefull feature I just learned.
Your handler is working like a charm :-))
Best regards from Grenoble
André
Le 27 janv. 09 à 10:22, Sarah Reichelt a écrit :
>> 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
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
More information about the use-livecode
mailing list