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

WordFile.RemoveTableRow

Removes a table row containing a placeholder.

Component: WordFile
Version: 7.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "WordFile.RemoveTableRow"; WordFile; Placeholder )

Parameters

Parameter Description Example value
WordFile The reference number of the open word file. $wordFile
Placeholder The name of the placeholder. "City"

Result

Returns OK or error.

Description

Removes a table row containing a placeholder.
If you have tables in your template word file and you only fill some rows, you can remove superfluous rows using this function.

Examples

Remove extra rows

Set Variable [$index; Value:5]
Loop
    Set Variable [$r; Value:MBS( "WordFile.RemoveTableRow"; $WordFile; "Bst_Menge_" & If($index < 10; "0"; "") & $index)]
    Set Variable [$r; Value:MBS( "WordFile.RemoveTableRow"; $WordFile; "Bst_Bemerkung_" & If($index < 10; "0"; "") & $index)]
    Set Variable [$index; Value:$index + 1]
    Exit Loop If [$index > 20]
End Loop

See also


WordFile.Release   -   WordFile.ReplaceTag

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins