Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  


The function sets various flags.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.5 Yes Yes Yes Yes Yes

MBS( "DynaPDF.Table.SetFlags"; Table; Row; Col; Flags )


Parameter Description Example value
Table The identifier for the table. $Table
Row The row number. Range from 0 to DynaPDF.Table.GetNumRows-1. Pass -1 for all rows. 0
Col The column number. Range from 0 to DynaPDF.Table.GetNumCols-1. Pass -1 for all columns. 0
Flags The flags to set. Can be string identifier or the numerical values. "HeaderRow"


Returns OK or error message.


The function sets various flags.
Flags are inherited from the table, column, and rows, in this order.

StaticThis flag avoids the deletion of cell contents when DynaPDF.Table.ClearContent, DynaPDF.Table.ClearColumn or DynaPDF.Table.ClearRow is called. The flag can be set to rows, columns, and cells.
HeaderRowHeader rows are the first rows which are drawn after a page break occurred. It is possible to mark more than one row as header row.
NoLineBreakThis flag avoids line breaks in cells which contain text. The flag is inherited from the table, columns, and rows. Text is output with WriteText() if this flag is set. See DynaPDF.Table.SetCellText for further information.
ScaleToRectIf set, images and templates are scaled into the cell so that both sides fit into the given width and height. The aspect ratio will be preserved. The flag is inherited from the table, columns, and rows.
UseImageCSIf set, images are inserted in the native image color space and embedded ICC profiles will be considered. The flag is inherited from the table, columns, and rows.


Sets the HeaderRow flag for a row:

MBS("DynaPDF.Table.SetFlags"; $table; $row; -1; "HeaderRow")

Adds a header row:

#Add header row
Set Variable [$row; Value:MBS("DynaPDF.Table.AddRow"; $table)]
Set Variable [$r; Value:MBS("DynaPDF.Table.SetCellText"; $table; $row; 0; "right"; "top"; "Index")]
Set Variable [$r; Value:MBS("DynaPDF.Table.SetCellText"; $table; $row; 1; "left"; "top"; "Product")]
Set Variable [$r; Value:MBS("DynaPDF.Table.SetCellText"; $table; $row; 2; "right"; "top"; "Price")]
Set Variable [$r; Value:MBS("DynaPDF.Table.SetCellText"; $table; $row; 3; "right"; "top"; "Quantity")]
Set Variable [$r; Value:MBS("DynaPDF.Table.SetCellText"; $table; $row; 4; "right"; "top"; "Total Price")]
# set flag for header row
Set Variable [$r; Value:MBS("DynaPDF.Table.SetFlags"; $table; $row; -1; "HeaderRow")]
# make row bold
Set Variable [$r; Value:MBS("DynaPDF.Table.SetFont"; $table; $row; -1; "Helvetica"; 2; 1; "unicode")]

See also

Example Databases

DynaPDF.Table.SetColorFloat   -   DynaPDF.Table.SetFont

Feedback: Report problem or ask question.

MBS Xojo Plugins