clearTable: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=clearTable |version=1.4.0.1 |description= Removes all rows from the specified table. May only be used by GM or a trusted macro. |usage= <source lang="mtm...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
 
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:
|name=clearTable
|name=clearTable
|version=1.4.0.1
|version=1.4.0.1
|trusted=true
|description=
|description=
Removes all rows from the specified table. May only be used by GM or a trusted macro.
Removes all rows from the specified table.
|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
clearTable(tableName)
clearTable(tableName)
</source>
</syntaxhighlight>
'''Parameters'''
'''Parameters'''
{{param|tableName|A string containing the name of the Table.}}
{{param|tableName|A string containing the name of the Table.}}
|also=
|also=
[[table (function)|table()]]
{{func|deleteTableEntry}} {{func|deleteTable}}
}}
}}
[[Category:Table Function]]
[[Category:Table Function]]

Latest revision as of 21:18, 14 March 2023

clearTable() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.4.0.1
Removes all rows from the specified table.

Usage

clearTable(tableName)

Parameters

  • tableName - A string containing the name of the Table.


See Also