Is it Possible to insert a line in a list field

Fran=?ISO-8859-1?B?5w==?=ois Cuneo francois.cuneo at cuk.ch
Wed Jun 11 14:42:01 EDT 2003


> Bonjour François,
> 
> ca va bien?
> 
> Just posted this one again with the correct subject :-)
> 
>> Hi!
>> Is it possible by a command to insert a line just before or after a
>> selected
>> line in a List Field?
> 
> Yes, at no extra cost :-)
> 
> obejcts used in this example:
> 
> fld "list", which will have line selected
> (NO multiple hilites, please ;-)
> 
> fld "to add", which holds the string to add :-)
> can also be a variable, of course...
> 
> btn "insert", whith one of these scripts:
> 
> 1. to add a line before the selected line:
> 
> on mouseup
>  put the hilitedlines of fld "list" into hl
>  if hl = empty then exit mouseup
>  put fld "to add" & CR before line hl of fld "list"
> end mouseUp
> 
> 2. to add a line after the selected line:
> 
> on mouseup
>  put the hilitedlines of fld "list" into hl
>  if hl = empty then exit mouseup
>  put CR & fld "to add" after line hl of fld "list"
> end mouseUp
> 
> Tested and works ;-)
> 
> You might want to use the alt-key to combine
> these scripts a la:
> 
> if the altkey is down then
>  ## before...
> else
> ## after...
> end if
> 
> You get the picture... :-)
> 
>> Thank you for your answer
> 
> A votre service, monsieur...
> 
>> Friendly
>> François
> 
> Au revoir
> 
> Klaus Major
> klaus at major-k.de
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
Thank you Klaus,
Ça va bien!:-=)
It's so simple when you write it!
Thank you again.
Friendly François

-------------- 
François Cuneo
Site Web dédié au Macintosh http://www.cuk.ch
E-mail: francois.cuneo at cuk.ch




More information about the use-livecode mailing list