HasAdvance Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:24

Description

Returns true if the Advance property has a value.

Syntax

object.HasAdvance (iIndex)

object

Required. Object name, returned by Text.GetTableCell.

 

iIndex

0=top, 1=bottom, 2=left, 3=right.

Example

This script uses HasAdvance to determine if it is possible to increment the bottom margin of all selected cells for 1pt;

Dim objTableCell = Text.GetTableCell

If objTableCell.HasAdvance(1) then

  objTableCell.Advance(1) = objTableCell.Advance(1) + 1000

end if

Text.SetTableCell (objTableCell)