Procedurally inserting text into a muli-style variablePiotr (4/23/14 5:21PM)
Keisuke Miyako (4/24/14 3:21AM)
Piotr (4/23/14 5:21 PM)
I want to procedurally insert text into a multi-style variable. I
the insertion point by the command get highlight. This command doesn't
style tags into account. Then I want to manipulate (insert) text at the
insertion point by using substring. However, now the style tags ARE
into account and the text is inserted at the wrong position.
Am I doing anything wrong? Is there another, better way to handle this?
Thanks in advance,
Piotr Chabot Stadhouders
Keisuke Miyako (4/24/14 3:21 AM)
short answer is yes (sorry) you should not use plain string commands
substring) to process style text.
use commands designed for style text,
OBJECT SET STYLED TEXT (v12/v13)
ST SET TEXT (v14)
OBJECT SET PLAIN TEXT (v12/v13)
SET SET PLAIN TEXT (v14)
notice in v14 you have constants to specify the ?=A2?=82¨=C5ìcurre
position?=A2?=82¨=C2ù, so you
can skip GET HIGHLIGHT if the goal is simple replacement/insertion.
On 2014/04/24 0:21, "Piotr" <p.stadhouders@... wrote:
color><param>00000,0000,DDEE/param>AAm I doing anything wrong? Is
there another, better way to handle this?
Reply to this message
Summary created 4/24/14 at 5:21AM by Intellex Corporation
Comments welcome at: email@example.com