Kevin Flynn wrote: > I can?t seem to set markOffset from a macro. > > > > <cfg:set variable="dotOffset" expression="?5'"/> > > > > works fine, but > > > > <cfg:set variable="markOffset" expression="?10'"/> > > > > doesn't. The mark remains in its previous position, and the attempt to > change the position appears to have terminated with an error (an alert > placed immediately after the set command does not get displayed). > > > > Is this a bug, or have I misunderstood something? >
<cfg:set variable="dotOffset" expression="?5'"/> works because the 'dot' mark always (to make it simple) exists. <cfg:set variable="markOffset" expression="?10'"/> will not work, unless the 'mark' mark exists. Therefore you probably need to add the 'mark' mark first. Example: <cfg:set variable="mark" expression="$dot"/> --- PS: An error is probably reported by XXE but you don't see it. I would recommend: * to add trace="true" to the macros you are developing. * to run XXE with a console: please edit xxe.bat or xxe.jstart, depending on how you usually start XXE, and replace "javaw" by "java". (xxe.jstart is used to parametrize xxe.exe.) ---- PS2: Why `` expression="?5'" ''? `` expression="5" '' (i.e. a number instead of a string) should work fine.

