Try this, it works for me: set the forecolor of char 1 to 10 of line 1 of field 1 to "red"
set the styledText of field 2 to the styledText of line 1 of field 1 Regards Tore > 17. sep. 2016 kl. 20.00 skrev jbv <j...@souslelogo.com>: > > Hi list > > Please consider the following lines of script : > > set the forecolor of char 1 to 10 of line 1 of fld 1 to "red" > put line 1 of fld 1 into fld 2 > > the text is in fld 2, but the color is gone... > Is there a way to keep the color (and other style properties) whzn > moving text between fields, or when sorting lines inside a fld ? > > I know that can be done with HTMLtext (but for what I have to do > it's much too slow)... > I have also tried the styledText, but to no avail (things don't > really happen like explained in the doc)... > > Thanks in advance. > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode