Re: procedurally delete anchored image in 4D Write Pro

2018-05-25 Thread Keisuke Miyako via 4D_Tech
there is no reason why a "delete" command should not exist, I suppose, but 4D Write Pro is about constructing dynamic documents using templates, by evaluating embedded expressions and/or combining prepared segments (range objects), so I would imagine that a delete command is not really in high

RE: procedurally delete anchored image in 4D Write Pro

2018-05-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Nug Technical <4d_tech@lists.4d.com> > Onderwerp: Re: procedurally delete anchored image in 4D Write Pro > > > > I think you need to first change the layout to inline (by UI or code), in > order to > delete an image. > > but the attribute "wk anchor

Re: procedurally delete anchored image in 4D Write Pro

2018-05-23 Thread Justin Carr via 4D_Tech
On 24 May 2018, at 10:01 am, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I think you need to first change the layout to inline (by UI or code), in > order to delete an image. > > but the attribute "wk anchor layout" is not settable with WP SET ATTRIBUTES >

Re: procedurally delete anchored image in 4D Write Pro

2018-05-23 Thread Keisuke Miyako via 4D_Tech
I think you need to first change the layout to inline (by UI or code), in order to delete an image. but the attribute "wk anchor layout" is not settable with WP SET ATTRIBUTES http://doc.4d.com/4Dv16R6/4D/16-R6/4D-Write-Pro-Attributes.300-3605889.en.html so you need to use INVOKE ACTION

Re: procedurally delete anchored image in 4D Write Pro

2018-05-23 Thread Justin Carr via 4D_Tech
> On 18 May 2018, at 11:21 pm, Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > How can I procedurally delete an anchored image in a 4D Write Pro document? > > I know how to select the image with > WP SELECT(*;"WParea";$image_object) > > But then what? Try: INVOKE