Page 1 of 1

'set HTMLText' question

Posted: Thu Feb 24, 2022 2:25 pm
by glenn9
Hi everyone,

I'm wanting to 'put' text from an array 'after' the text of field "B" based on this code

Code: Select all

...
put vText[vLookUp] after field"B"
...
As vText has got some styling to it, to preserve that styling I'm using

Code: Select all

set the htmlText of vText[vLookUp] to...
but as soon as I do this the existing text of field B is replaced by the text of the array item instead of being placed 'After' the text already present in field"B".

It seems that 'setting' the HTMLText seems to override whatever was originally in field"B"?

I guess I'm not understanding the HTMLText property fully?

Grateful for any help!

Thanks,

Glenn

Re: 'set HTMLText' question

Posted: Thu Feb 24, 2022 2:35 pm
by richmond62
Um . . .

How about this?:

Code: Select all

put the htmlText of vText[vLookUp] after fld "B"

Re: 'set HTMLText' question

Posted: Thu Feb 24, 2022 2:52 pm
by glenn9
not sure why I was so 'set' on using 'set...'

...it didn't occur to me to use 'put'...

Its worked a treat... I'm glad my blushes can't be seen!

Thank you!

Glenn