Hi, The documentation states http://doc.4d.com/4Dv16R6/4D/16-R6/ST-SET-ATTRIBUTES.301-3547533.en.html : "The startSel and endSel parameters can be used to designate the selection of text to which to apply the style modification(s) within the object. In startSel, you pass the position of the first character to be modified and in endSel, you pass the position of the last character to be modified plus one (the last character passed is not included in the modification)."
Hope that clears things. Best Regards, -Tai B. -----Original Message----- From: 4D_Tech [mailto:4d_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;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;Attribute bold style;1) The entore word is bolded. Can anyone shed light on why this is so? Version is 15.5 and am running on a MAC Thanks and reagrds, Chuck -- ----------------------------------------------------------------------------------------- Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 Informed Solutions, Inc. Brookline, MA 02446 USA Registered 4D Developer Providers of 4D, Sybase & SQL Server connectivity http://www.informed-solutions.com ----------------------------------------------------------------------------------------- This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************