Re: stylized text

2018-05-23 Thread Chuck Miller via 4D_Tech
HI Thanks for the info. I think it would be a great idea to put this in the documentation, as it is far from intuitive. This is especially true when working from the first character in the text. I for one would never see that there was a space counted in position one even though t did not really

Re: stylized text

2018-05-23 Thread Keisuke Miyako via 4D_Tech
my sincere apologies! my previous post was obviously erroneous. the distinction is not between ST and WP, but rather, string manipulation versus range manipulation. > GET HIGHLIGHT, ST SET ATTRIBUTES, etc. > count the "spaces" between characters. > | a | b | c | d | e | > 1 2 3 4 5 6

Re: stylized text

2018-05-22 Thread Charles Miller via 4D_Tech
On Tue, May 22, 2018 at 6:51 PM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > ST commands and WP commands use a different convention to describe a > selection or range. > > ST > > GET HIGHLIGHT, ST SET ATTRIBUTES, etc. > > count the "spaces" between characters. > > | a | b | c | d |

Re: stylized text

2018-05-22 Thread Keisuke Miyako via 4D_Tech
ST commands and WP commands use a different convention to describe a selection or range. ST GET HIGHLIGHT, ST SET ATTRIBUTES, etc. count the "spaces" between characters. | a | b | c | d | e | 1 2 3 4 5 6 WP range.start, range.end, WP SELECT, WP SET ATTRIBUTES, etc. count characte

RE: stylized text

2018-05-22 Thread Tai Bui via 4D_Tech
_tech-boun...@lists.4d.com] On Behalf Of Charles Miller via 4D_Tech Sent: Tuesday, May 22, 2018 1:44 PM To: 4D iNug Technical Cc: Charles Miller Subject: stylized text Given the following *ST SET PLAIN TEXT*($StyleNote_txt;"Note : As of July”) *ST SET ATTRIBUTES*($StyleNote_txt;1;4;Attribu

stylized text

2018-05-22 Thread Charles Miller via 4D_Tech
Given the following *ST SET PLAIN TEXT*($StyleNote_txt;"Note : As of July”) *ST SET ATTRIBUTES*($StyleNote_txt;1;4;Attribute bold style;1) Where should the text be bolded. One might think all of the word Note, but it does not. If you change the code to *ST SET ATTRIBUTES*($StyleNote_txt;1;5;A